|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Collaboration diagram for SimpleSAML_Memcache: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 215 of file Memcache.php.
References $memcache, and $server.
Referenced by loadMemcacheServerGroup().
Here is the caller graph for this function:
|
static |
Delete a key-value pair from the memcache servers.
| string | $key | The key we should delete. |
Definition at line 180 of file Memcache.php.
References $key, $server, and SimpleSAML\Logger\debug().
Referenced by SimpleSAML\Store\Memcache\delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
|
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 416 of file Memcache.php.
References $config, $expire, and SimpleSAML_Configuration\getInstance().
Referenced by set().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 357 of file Memcache.php.
References $config, $index, $serverGroups, SimpleSAML_Configuration\getInstance(), and loadMemcacheServerGroup().
Here is the call graph for this function:
|
static |
Retrieve statistics directly in the form returned by getExtendedStats, for all server groups.
Definition at line 482 of file Memcache.php.
Referenced by memcacheMonitor_hook_sanitycheck().
Here is the caller graph for this function:
|
static |
This function retrieves statistics about all memcache server groups.
| Exception | If memcache server status couldn't be retrieved. |
Definition at line 455 of file Memcache.php.
References $data, $ret, $server, $stats, and SimpleSAML\Utils\Arrays\transpose().
Here is the call graph for this function:
|
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 311 of file Memcache.php.
References $index, $memcache, $server, and addMemcacheServer().
Referenced by getMemcacheServers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 36 of file Memcache.php.
|
staticprivate |
Definition at line 28 of file Memcache.php.
Referenced by getMemcacheServers().