# yii\caching

> 17 classes, 1 interface of the yii\caching namespace.

[API reference](/docs/api/index.md) › [yii](/docs/api/yii/index.md) › caching

## Classes

| Class | Summary |
| --- | --- |
| [`ApcuCache`](/docs/api/yii/caching/apcucache/index.md) | ApcuCache provides APCu caching in terms of an application component. |
| [`ArrayCache`](/docs/api/yii/caching/arraycache/index.md) | ArrayCache provides caching for the current request only by storing the values in an array. |
| [`Cache`](/docs/api/yii/caching/cache/index.md) abstract | Cache is the base class for cache classes supporting different cache storage implementations. |
| [`CallbackDependency`](/docs/api/yii/caching/callbackdependency/index.md) | CallbackDependency represents a dependency based on the result of a callback function. |
| [`ChainedDependency`](/docs/api/yii/caching/chaineddependency/index.md) | ChainedDependency represents a dependency which is composed of a list of other dependencies. |
| [`DbCache`](/docs/api/yii/caching/dbcache/index.md) | DbCache implements a cache application component by storing cached data in a database. |
| [`DbDependency`](/docs/api/yii/caching/dbdependency/index.md) | DbDependency represents a dependency based on the query result of a SQL statement. |
| [`DbQueryDependency`](/docs/api/yii/caching/dbquerydependency/index.md) | DbQueryDependency represents a dependency based on the query result of an [`QueryInterface`](/docs/api/yii/db/queryinterface/index.md) instance. |
| [`Dependency`](/docs/api/yii/caching/dependency/index.md) abstract | Dependency is the base class for cache dependency classes. |
| [`DummyCache`](/docs/api/yii/caching/dummycache/index.md) | DummyCache is a placeholder cache component. |
| [`ExpressionDependency`](/docs/api/yii/caching/expressiondependency/index.md) | ExpressionDependency represents a dependency based on the result of a PHP expression. |
| [`FileCache`](/docs/api/yii/caching/filecache/index.md) | FileCache implements a cache component using files. |
| [`FileDependency`](/docs/api/yii/caching/filedependency/index.md) | FileDependency represents a dependency based on a file's last modification time. |
| [`MemCache`](/docs/api/yii/caching/memcache/index.md) | MemCache implements a cache application component based on [memcache](https://pecl.php.net/package/memcache) and [memcached](https://pecl.php.net/package/memcached). |
| [`MemCacheServer`](/docs/api/yii/caching/memcacheserver/index.md) | MemCacheServer represents the configuration data for a single memcache or memcached server. |
| [`TagDependency`](/docs/api/yii/caching/tagdependency/index.md) | TagDependency associates a cached data item with one or multiple [`$tags`](/docs/api/yii/caching/tagdependency/index.md#property-tags). |
| [`WinCache`](/docs/api/yii/caching/wincache/index.md) | WinCache provides Windows Cache caching in terms of an application component. |

## Interfaces

| Interface | Summary |
| --- | --- |
| [`CacheInterface`](/docs/api/yii/caching/cacheinterface/index.md) | CacheInterface is the base interface for cache. |