gaotiefeng / php-cache
php cache
v1.0.0
2021-05-31 07:05 UTC
Requires
- php: >=7.1.0
- ext-redis: *
- ext-zlib: *
- psr/simple-cache: ^1.0
Requires (Dev)
- phpunit/phpunit: ^6.2
This package is not auto-updated.
Last update: 2024-10-30 19:04:39 UTC
README
PSR-16 缓存接口规范 PSR-16
文件驱动FileHandler
$file = new FileHandler();
$file->set("file","[file,1]",120);
$read = $file->get("file");
var_dump($read);
//$file->clear();
redis驱动RedisHandler
$redis = new RedisHandler();
$redis->set("redis","[0,1,redis]",120);
$read = $redis->get("redis");