# Enable Cached Table

```
ALTER TABLE users CACHE;
```

![right](./student-guide/diagram/CachedTablesPrinciple01_aa_001_20220515.png)

------------------------------------------------------------
You can use the ALTER TABLE USERS CACHE; statement to load a subtable into the TiDB Server's table cache area, but that is, from this TiDB Server, a lease (lease) is added to the cached table, and the lease (lease) is determined by the system parameter The tidb_table_cache_lease definition, defaults to 3, and can range from 1 to 10 in seconds.

In the case of a graph, the timing starts when the table starts loading from TiKV's cache to the TiDB Server.