graymatterlabs/simple-cache
最新稳定版本:v1.1.4
Composer 安装命令:
composer require graymatterlabs/simple-cache
包简介
PSR-16 implementations
README 文档
README
Runtime implementations that satisfy the PSR-16 specification. Currently supported are array, "null-object", and cookie-based implementations.
Installation
You can install the package via composer:
composer require graymatterlabs/simple-cache:^1.1
Usage
$cache = new ArrayCache(); // new CookieCache('cookie-name'); $cache->set($key, $value, $ttl); // bool $cache->setMultiple($values, $ttl); // bool $cache->get($key, $default); // $value|$default $cache->getMultiple($keys, $default); // iterator|$default $cache->delete($key); // bool $cache->deleteMultiple($keys); // bool $cache->has($key); // bool $cache->clear();
Testing
composer test
Changelog
Please see the Release Notes for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 6.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 2
- 推荐数: 3
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-15