vesica/cacher
最新稳定版本:1.4
Composer 安装命令:
composer require vesica/cacher
包简介
A simplified caching library built on top of php-cache
README 文档
README
As the underlying PHP Cache library is now deprecated in favour of Symfony Cache (https://symfony.com/doc/current/components/cache.html), this library is no longer supported. Symfony cache simplifies a lot of the complexity much like this library did, and there's no good reason to maintain another one.
Caching Made Easy
This is wrapper around the PHP cache/cache library (https://github.com/php-cache/cache) to simplify caching with just 2 lines.
This was originally written inside https://github.com/islamic-network/waf but is now used in various projects.
Install it
composer require vesica/cacher
Use it with Redis or Memcached
$cache = new \Vesica\Cacher\Redis($host, $port, $namespace);
// OR
$cache = new \Vesica\Cacher\Memcached($host, $port, $namespace);
$cache->set($key, $value);
$cache->get($key);
$cache->exists($key);
统计信息
- 总下载量: 6.38k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2019-06-24