dev-master
9999999-dev https://github.com/Soneritics/CacheCaching mechanism with support for multiple caching types.
MIT
The Requires
- php >=5.5.0
The Development Requires
Caching mechanism with support for multiple caching types.
by * @Soneritics - Jordi Jolink, (*2)
Caching interfaces and implementation of caching methods., (*3)
Currently supports the following caches: - TextCache - FileCache - MemCache - ArrayCache - SessionCache, (*4)
```php $textCache = (new TextCache('tmp')) ->setCacheExpiration(4) ->set('test', 'test');, (*5)
echo $textCache->get('test'); // sleep(5); // $textCache->has('test') === false, (*6)
$fileCache = (new FileCache('tmp')) ->setCacheExpiration(3600) ->set('test', ['test1', 'test2']);, (*7)
var_dump($fileCache->get('test')); $fileCache->clear('test');, (*8)
Caching mechanism with support for multiple caching types.
MIT