eZPublishCommunityProject  2013.9
eZ\Publish\Core\Persistence\Cache\CacheServiceDecorator Class Reference

Class CacheServiceDecorator. More...

Public Member Functions

 __construct (CacheService $cacheService)
 Constructs the cache service decorator. More...
 
 clear ()
 Clears the cache for the key, or if none is specified clears the entire cache. More...
 
 getItem ()
 Returns a Cache item for the specified key. More...
 

Public Attributes

const SPI_CACHE_KEY_PREFIX = 'ez_spi'
 

Protected Attributes

 $cacheService
 

Detailed Description

Class CacheServiceDecorator.

Wraps the Cache Service for Spi cache to apply key prefix for the cache

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Cache\CacheServiceDecorator::__construct ( CacheService  $cacheService)

Constructs the cache service decorator.

Parameters
\Tedivm\StashBundle\Service\CacheService$cacheService

Member Function Documentation

eZ\Publish\Core\Persistence\Cache\CacheServiceDecorator::clear ( )

Clears the cache for the key, or if none is specified clears the entire cache.

The key can be either a series of string arguments, or an array.

Parameters
null | string | array$key,$key,$key...
eZ\Publish\Core\Persistence\Cache\CacheServiceDecorator::getItem ( )

Returns a Cache item for the specified key.

The key can be either a series of string arguments, or an array.

Parameters
string | array$key,$key,$key...
Returns

Member Data Documentation

eZ\Publish\Core\Persistence\Cache\CacheServiceDecorator::$cacheService
protected
const eZ\Publish\Core\Persistence\Cache\CacheServiceDecorator::SPI_CACHE_KEY_PREFIX = 'ez_spi'

The documentation for this class was generated from the following file: