PHP Class Webmozart\KeyValueStore\Decorator\CachingDecorator

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: extends AbstractDecorator
Afficher le fichier Open project: webmozart/key-value-store

Méthodes publiques

Méthode Description
__construct ( Webmozart\KeyValueStore\Api\KeyValueStore $store, Doctrine\Common\Cache\Cache $cache, integer $ttl ) Creates the store.
clear ( )
exists ( $key )
get ( $key, $default = null )
getMultiple ( array $keys, $default = null )
getMultipleOrFail ( array $keys )
getOrFail ( $key )
remove ( $key )
set ( $key, $value )

Method Details

__construct() public méthode

Creates the store.
public __construct ( Webmozart\KeyValueStore\Api\KeyValueStore $store, Doctrine\Common\Cache\Cache $cache, integer $ttl )
$store Webmozart\KeyValueStore\Api\KeyValueStore The cached store.
$cache Doctrine\Common\Cache\Cache The cache.
$ttl integer The time-to-live for cache entries. If set to 0, cache entries never expire.

clear() public méthode

public clear ( )

exists() public méthode

public exists ( $key )

get() public méthode

public get ( $key, $default = null )

getMultiple() public méthode

public getMultiple ( array $keys, $default = null )
$keys array

getMultipleOrFail() public méthode

public getMultipleOrFail ( array $keys )
$keys array

getOrFail() public méthode

public getOrFail ( $key )

remove() public méthode

public remove ( $key )

set() public méthode

public set ( $key, $value )