stevenbuehner / temporary-cache-service
一个小型服务,提供临时缓存数据的能力
1.1
2016-08-27 17:53 UTC
Requires
- php: >5.3
Requires (Dev)
- phpunit/phpunit: ^4.8
README
一个用于临时缓存数据的小型服务。
它提供了以下功能
/**
* @param bool $key
*/
public function hasCache($key;
/**
* @param mixed $key
* @return mixed
* @throws CacheKeyDoesNotExistException
*/
public function getCache($key);
/**
* @param mixed $key
* @param mixed $value
* @return mixed $value
*/
public function setCache($key, $value);
/**
* Clears the cache of the given key if it does exist
* @param mixed $key
*/
public function clearCache($key);