salted-herring/salted-library
Composer 安装命令:
composer require salted-herring/salted-library
包简介
Salted Herring's PHP Library (in progress)
关键字:
README 文档
README
SaltedCache
SaltedCache provides you 3 simple functions that ease the manipulation of SilveStripe/Memcache's cache
public static function read($factory, $cache_key)
$factory - String. The factory name of which you store the cache
$cache_key - String. The key that is used to retrieve the cache. Recommend use with Utilities::stringify(HTTP_REQUEST)
public static function delete($factory, $cache_key)
$factory - String. The factory name of which you store the cache
$cache_key - String. The key that is used to retrieve the cache. Recommend use with Utilities::stringify(HTTP_REQUEST)
public static function save($factory, $cache_key, $result)
$factory - String. The factory name of which you store the cache
$cache_key - String. The key that is used to store the cache. You will need the same key to retrieve the corresponding result. Recommend use with Utilities::stringify(HTTP_REQUEST)
$result - Array | DataList. The result that you pull out from the DB or sewed up multiple datalist manually.
统计信息
- 总下载量: 2.38k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-05-30