phpcachex / cache
PHP 缓存库
v1.0.0
2015-08-06 02:58 UTC
Requires
- php: >=5.6.0
This package is not auto-updated.
Last update: 2024-09-14 18:47:23 UTC
README
=======================
要求
- php5.6+
安装
- composer.json
"require":
{
"phpcachex/cache": "dev-master"
}
- 命令
composer install
或composer update
简介
- 这是一个 PHP 缓存库,本版本只包含
Memcache
如何使用多调用
<?php
$params = [
[
'host' => '127.0.0.1',
'port' => 11211,
'persistent' => 1,
]
];
$instance = \PhpCacheX\Cache\Instance::get('Memcache',$params);
$set = $instance->set('key','value');
$rs = $instance->get('key');
?>
许可证
MIT 许可证,请参阅 http://mit-license.org/