Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (38 sloc) 0.944 kb
namespace Beryllium\CacheBundle;
* Minimum requirements for interfacing with a typical key-value store
* @package
* @version $id$
* @author Kevin Boyd <>
* @license See
interface CacheClientInterface
* Retrieve the value corresponding to a provided key
* @param string $key Unique identifier
* @access public
* @return mixed Result from the cache
public function get( $key );
* Add a value to the cache under a unique key
* @param string $key Unique key to identify the data
* @param mixed $value Data to store in the cache
* @param int $ttl Lifetime for stored data (in seconds)
* @access public
* @return void
public function set( $key, $value, $ttl );
* Check the state of the cache
* @access public
* @return boolean True if the cache is in a usable state, otherwise false
public function isSafe();
Jump to Line
Something went wrong with that request. Please try again.