PHP Class Doctrine\Common\Cache\RedisCache

Since: 2.2
Author: Osman Ungur ([email protected])
Inheritance: extends CacheProvider
Datei anzeigen Open project: doctrine/cache Class Usage Examples

Public Methods

Method Description
getRedis ( ) : Redi\Redis | null Gets the redis instance used by the cache.
setRedis ( Redis $redis ) : void Sets the redis instance to use.

Protected Methods

Method Description
doContains ( $id )
doDelete ( $id )
doFetch ( $id )
doFetchMultiple ( array $keys )
doFlush ( )
doGetStats ( )
doSave ( $id, $data, $lifeTime )
doSaveMultiple ( array $keysAndValues, $lifetime )
getSerializerValue ( ) : integer Returns the serializer constant to use. If Redis is compiled with igbinary support, that is used. Otherwise the default PHP serializer is used.

Method Details

doContains() protected method

protected doContains ( $id )

doDelete() protected method

protected doDelete ( $id )

doFetch() protected method

protected doFetch ( $id )

doFetchMultiple() protected method

protected doFetchMultiple ( array $keys )
$keys array

doFlush() protected method

protected doFlush ( )

doGetStats() protected method

protected doGetStats ( )

doSave() protected method

protected doSave ( $id, $data, $lifeTime )

doSaveMultiple() protected method

protected doSaveMultiple ( array $keysAndValues, $lifetime )
$keysAndValues array

getRedis() public method

Gets the redis instance used by the cache.
public getRedis ( ) : Redi\Redis | null
return Redi\Redis | null

getSerializerValue() protected method

Returns the serializer constant to use. If Redis is compiled with igbinary support, that is used. Otherwise the default PHP serializer is used.
protected getSerializerValue ( ) : integer
return integer One of the Redis::SERIALIZER_* constants

setRedis() public method

Sets the redis instance to use.
public setRedis ( Redis $redis ) : void
$redis Redis
return void