Class RedisHandler

Summary

Fully Qualified Name: CodeIgniter\Cache\Handlers\RedisHandler
Implements: CacheInterface

Description

Redis cache handler

Methods

Name Description Defined By
__construct() Constructor. RedisHandler
__destruct() Class destructor RedisHandler
clean() Will delete all items in the entire cache. RedisHandler
decrement() Performs atomic decrementation of a raw stored value. RedisHandler
delete() Deletes a specific item from the cache store. RedisHandler
get() Attempts to fetch an item from the cache store. RedisHandler
getCacheInfo() Returns information on the entire cache. RedisHandler
getMetaData() Returns detailed information about the specific item in the cache. RedisHandler
increment() Performs atomic incrementation of a raw stored value. RedisHandler
initialize() Takes care of any handler-specific setup that must be done. RedisHandler
isSupported() Determines if the driver is supported on this system. RedisHandler
save() Saves an item to the cache store. RedisHandler

Method Details

__construct()

Constructor.

Parameter Name Type Description
$config \type

Returns:

__destruct()

Class destructor

Closes the connection to Memcache(d) if present.

Returns:

clean()

Will delete all items in the entire cache.

Returns: mixed

decrement()

Performs atomic decrementation of a raw stored value.

Parameter Name Type Description
$key string Cache
$offset int Step/value

Returns: mixed

delete()

Deletes a specific item from the cache store.

Parameter Name Type Description
$key string Cache

Returns: mixed

get()

Attempts to fetch an item from the cache store.

Parameter Name Type Description
$key string Cache

Returns: mixed

getCacheInfo()

Returns information on the entire cache.

The information returned and the structure of the data varies depending on the handler.

Returns: mixed

getMetaData()

Returns detailed information about the specific item in the cache.

Parameter Name Type Description
$key string Cache

Returns: mixed

increment()

Performs atomic incrementation of a raw stored value.

Parameter Name Type Description
$key string Cache
$offset int Step/value

Returns: mixed

initialize()

Takes care of any handler-specific setup that must be done.

Returns:

isSupported()

Determines if the driver is supported on this system.

Returns: bool

save()

Saves an item to the cache store.

Parameter Name Type Description
$key string Cache
$value mixed The
$ttl int Time

Returns: mixed

Top