Cache Adapters#
CacheLayer ships multiple adapters for different runtime and infrastructure needs.
Choosing quickly:
Start with
fileorpdofor most applications.Use
memory/apcufor fastest local access.Use
redis/valkey/memcachefor distributed deployments.Use cloud adapters (
mongodb,scyllaDb) when cache must live outside app hosts.
- Array Adapter (
memory) - WeakMap Adapter (
weakMap) - Null Adapter (
nullStore) - Chain Adapter (
chain) - File Adapter (
file) - PHP Files Adapter (
phpFiles) - APCu Adapter (
apcu) - Memcached Adapter (
memcache) - Redis Adapter (
redis) - Valkey Adapter (
valkey) - Redis Cluster Adapter (
redisCluster) - SQLite Adapter (
sqlite) - PDO Adapter (
pdo) - Shared Memory Adapter (
sharedMemory) - MongoDB Adapter (
mongodb) - ScyllaDB Adapter (
scyllaDb) - Serialization in Adapters