stevenbuehner / temporary-cache-service
Small service that provides the ability to temporarily cache data
1.1
2016-08-27 17:53 UTC
Requires
- php: >5.3
Requires (Dev)
- phpunit/phpunit: ^4.8
README
A small Service to temporarily cache data.
It offers the functions:
/**
* @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);