WPDev.one
Core Class

Redis

class Redis // Constructor: function Object() { [native code] }

Caches data to redis

Methods 7 methods

Method / Return Description
__construct()
void

Create a new cache object

Parameters: $location: mixed, $name: mixed, $options: mixed
setRedisClient()
void

No description available.

Parameters: $cache: NativeRedis
save()
bool

Save data to the cache

Parameters: $data: mixed
load()
array

Retrieve the data saved to the cache

mtime()
int

Retrieve the last modified time for the cache

touch()
bool

Set the last modified time to the current time

unlink()
bool

Remove the cache

Properties

Property / Type Description
$cache
mixed
public
No description available.
$options
mixed
public
No description available.
$name
mixed
public
No description available.

Class Information

Source File
wp-includes/SimplePie/src/Cache/Redis.php
Advertisement