whereof/cache

This package is abandoned and no longer maintained. No replacement package was suggested.

独立cache缓存SDK,支持file,Redis,Memcache,Memcached等驱动

1.0.0 2022-03-30 02:30 UTC

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();