Doctrine Cache -- PHP 缓存库

GitHub:https://github.com/doctrine/cache

官方文档:http://doctrine-orm.readthedocs.io/projects/doctrine-orm/en/latest/reference/caching.html

1
$ composer require "doctrine/cache"
1
2
3
$cache = new FilesystemCache(sys_get_temp_dir());

$cache->save('k', 'v', $expire_time);
khs1994 wechat
微信扫码赞赏我的文章
0%