whereof / 缓存
此包已被废弃且不再维护。未建议替代包。
独立的缓存SDK,支持file,Redis,Memcache,Memcached等驱动
1.0.0
2022-03-30 02:30 UTC
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();