Download the PHP package ez-php/cache without Composer
On this page you can find all versions of the php package ez-php/cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package cache
ez-php/cache
Cache module for the ez-php framework — array, file, Redis, and Memcached drivers with a unified interface, tagging, locking, cache statistics, and stampede protection.
Requirements
- PHP 8.5+
- ez-php/framework 0.*
- ext-redis (for Redis driver)
- ext-memcached (for Memcached driver)
Installation
Setup
Register the service provider:
Configure in config/cache.php:
Usage
Basic operations
Tagging
Locking
Stampede protection
Drivers
| Driver | CACHE_DRIVER |
Notes |
|---|---|---|
array |
array |
In-memory, request lifetime only |
file |
file |
Filesystem, serialised entries |
redis |
redis |
Via ext-redis; flush() clears entire database |
memcached |
memcached |
Via ext-memcached; flush() clears entire server |
Classes
| Class | Description |
|---|---|
CacheInterface |
Unified contract: get, set, forget, has, remember, flush |
ArrayDriver |
In-memory driver |
FileDriver |
Filesystem driver with MD5-keyed files |
RedisDriver |
Redis driver via ext-redis; native TTL |
MemcachedDriver |
Memcached driver via ext-memcached |
FileLock / ArrayLock / RedisLock / MemcachedLock |
Driver-specific lock implementations |
TaggableDriverTrait |
Provides tags() → TaggedCache for all drivers |
TaggedCache |
Scoped cache view: keys prefixed with tag hash |
CacheStats |
Immutable value object: hits, misses |
StampedeProtectedCache |
Decorator: probabilistic early recompute to prevent stampedes |
CacheServiceProvider |
Config-driven driver binding |
License
MIT — Andreas Uretschnig
All versions of cache with dependencies
PHP Build Version
Package Version
The package ez-php/cache contains the following files
Loading the files please wait ...