PHP Class WP_Spider_Cache_Object

WordPress's Object Cache is used to save on trips to the database. It stores all of the cache data to memory and makes the cache contents available by using a key, which is used to name and later retrieve cached data. This Object Cache replaces WordPress's built in runtime cache by placing it in the wp-content folder, and is loaded via wp-settings.php.
Show file Open project: stuttter/wp-spider-cache

Public Properties

Property Type Description
$daemon_class_name Memcached Holds the cache daemon class name.
$engine_class_name Memcache Holds the cache engine class name.
$servers_fallback array Holds the fallback servers.
$servers_global Memcached Holds the cache servers.

Public Methods

Method Description
__construct ( null $persistent_id = NULL ) Instantiate the class.

Method Details

__construct() public method

Instantiates the class and returns adds the servers specified in the $memcached_servers global array.
public __construct ( null $persistent_id = NULL )
$persistent_id null To create an instance that persists between requests, use persistent_id to specify a unique ID for the instance.

Property Details

$daemon_class_name public property

Holds the cache daemon class name.
public Memcached $daemon_class_name
return Memcached

$engine_class_name public property

Holds the cache engine class name.
public Memcache $engine_class_name
return Memcache

$servers_fallback public property

Holds the fallback servers.
public array $servers_fallback
return array

$servers_global public property

Holds the cache servers.
public Memcached $servers_global
return Memcached