eZPublishCommunityProject  2013.4
eZ\Publish\Core\REST\Client\ObjectCache Class Reference

Simple cache for value objects during a single request. More...

Public Member Functions

 clear ($key)
 Clears the data stored in $key. More...
 
 clearAll ()
 Clears all cached items. More...
 
 restore ($key)
 Restores data stored under $key, returns null if $key is not found. More...
 
 store ($key, ValueObject $data)
 Stores $data under $key. More...
 

Protected Attributes

 $cachedObjects = array()
 

Detailed Description

Simple cache for value objects during a single request.

Member Function Documentation

eZ\Publish\Core\REST\Client\ObjectCache::clear (   $key)

Clears the data stored in $key.

Parameters
string$key
Returns
void
eZ\Publish\Core\REST\Client\ObjectCache::clearAll ( )

Clears all cached items.

Returns
void
eZ\Publish\Core\REST\Client\ObjectCache::restore (   $key)

Restores data stored under $key, returns null if $key is not found.

Parameters
string$key
Returns
ValueObject|null
eZ\Publish\Core\REST\Client\ObjectCache::store (   $key,
ValueObject  $data 
)

Stores $data under $key.

Parameters
string$key
ValueObject$data
Returns
void

Member Data Documentation

eZ\Publish\Core\REST\Client\ObjectCache::$cachedObjects = array()
protected

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