- PHP 5.6 => above
- Composer
- Redis 5.0 (optional)
- Memcached 1.5.X (optional)
To install this module, you're should use composer library :
composer require theriskus/cache
- For initialize add to your bootstrap file this:
Cache::init(driver);
and adduse WorkTestMax\Classes\Cache
- For set any params:
Cache::set(string $cache_id, mixed $data, int $ttl, string $sub_dir = '')
- For get any params:
Cache::get(string $cache_id, string $sub_dir = '');