ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Static Public Member Functions | |
static | get ($key) |
Find data stored with a given key. More... | |
static | set ($key, $value, $expire=null) |
Save a key-value pair to the memcache servers. More... | |
static | delete ($key) |
Delete a key-value pair from the memcache servers. More... | |
static | getStats () |
This function retrieves statistics about all memcache server groups. More... | |
static | getRawStats () |
Retrieve statistics directly in the form returned by getExtendedStats, for all server groups. More... | |
Static Private Member Functions | |
static | addMemcacheServer ($memcache, $server) |
This function adds a server from the 'memcache_store.servers' configuration option to a Memcache object. More... | |
static | loadMemcacheServerGroup (array $group) |
This function takes in a list of servers belonging to a group and creates a Memcache object from the servers in the group. More... | |
static | getMemcacheServers () |
This function gets a list of all configured memcache servers. More... | |
static | getExpireTime () |
This is a helper-function which returns the expire value of data we should store to the memcache servers. More... | |
Static Private Attributes | |
static | $serverGroups = null |
static | $extension = '' |
Definition at line 20 of file Memcache.php.
|
staticprivate |
This function adds a server from the 'memcache_store.servers' configuration option to a Memcache object.
The server parameter is an array with the following keys:
Memcache | $memcache | The Memcache object we should add this server to. |
array | $server | An associative array with the configuration options for the server to add. |
Exception | If any configuration option for the server is invalid. |
Definition at line 214 of file Memcache.php.
References $memcache, and $server.
Referenced by loadMemcacheServerGroup().
|
static |
Delete a key-value pair from the memcache servers.
string | $key | The key we should delete. |
Definition at line 179 of file Memcache.php.
References $key, $server, and SimpleSAML\Logger\debug().
Referenced by SimpleSAML\Store\Memcache\delete().
|
static |
Find data stored with a given key.
string | $key | The key of the data. |
Definition at line 46 of file Memcache.php.
References $info, $key, $server, SimpleSAML\Logger\debug(), set(), and SimpleSAML\Logger\warning().
|
staticprivate |
This is a helper-function which returns the expire value of data we should store to the memcache servers.
The value is set depending on the configuration. If no value is set in the configuration, then we will use a default value of 0. 0 means that the item will never expire.
Exception | If the option 'memcache_store.expires' has a negative value. |
Definition at line 415 of file Memcache.php.
References $config, $expire, and SimpleSAML_Configuration\getInstance().
Referenced by set().
|
staticprivate |
This function gets a list of all configured memcache servers.
This list is initialized based on the content of 'memcache_store.servers' in the configuration.
Exception | If the servers configuration is invalid. |
Definition at line 356 of file Memcache.php.
References $config, $index, $serverGroups, SimpleSAML_Configuration\getInstance(), and loadMemcacheServerGroup().
|
static |
Retrieve statistics directly in the form returned by getExtendedStats, for all server groups.
Definition at line 481 of file Memcache.php.
References $ret, and Sabre\VObject\$stats.
Referenced by memcacheMonitor_hook_sanitycheck().
|
static |
This function retrieves statistics about all memcache server groups.
Exception | If memcache server status couldn't be retrieved. |
Definition at line 454 of file Memcache.php.
References $data, $ret, $server, Sabre\VObject\$stats, and SimpleSAML\Utils\Arrays\transpose().
|
staticprivate |
This function takes in a list of servers belonging to a group and creates a Memcache object from the servers in the group.
array | $group | Array of servers which should be created as a group. |
Exception | If the servers configuration is invalid. |
Definition at line 310 of file Memcache.php.
References $index, $memcache, $server, and addMemcacheServer().
Referenced by getMemcacheServers().
|
static |
Save a key-value pair to the memcache servers.
string | $key | The key of the data. |
mixed | $value | The value of the data. |
integer | null | $expire | The expiration timestamp of the data. |
Definition at line 149 of file Memcache.php.
References $expire, $key, $server, SimpleSAML\Logger\debug(), and getExpireTime().
Referenced by get(), and SimpleSAML\Store\Memcache\set().
|
staticprivate |
Definition at line 36 of file Memcache.php.
|
staticprivate |
Definition at line 28 of file Memcache.php.
Referenced by getMemcacheServers().