whereof / cache
独立cache缓存SDK,支持file,Redis,Memcache,Memcached等驱动
Installs: 4 557
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
- ext-zlib: *
Requires (Dev)
- phpunit/phpunit: ^6|^7|^8|^9
This package is auto-updated.
Last update: 2022-03-30 14:31:47 UTC
README
$config = [
'expire' => 0,
'cache_subdir' => true,
'prefix' => '',
'path' => './.cache',
'hash_type' => 'md5',
'data_compress' => false,
];
$cache = new \whereof\FileCache();
Redis
$config = [
'host' => '127.0.0.1',
'port' => 6379,
'password' => '',
'select' => 0,
'timeout' => 0,
'expire' => 0,
'persistent' => false,
'prefix' => '',
]
$cache = new \whereof\RedisCache();