Skip to content
Snippets Groups Projects
Commit 1bd0844b authored by Olav Morken's avatar Olav Morken
Browse files

Memcache: Add delete method.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2489 44740490-163a-0410-bde0-09ae8108e29a
parent c0801679
No related branches found
No related tags found
No related merge requests found
...@@ -137,6 +137,21 @@ class SimpleSAML_Memcache { ...@@ -137,6 +137,21 @@ class SimpleSAML_Memcache {
} }
/**
* Delete a key-value pair from the memcache servers.
*
* @param string $key The key we should delete.
*/
public static function delete($key) {
assert('is_string($key)');
/* Store this object to all groups of memcache servers. */
foreach(self::getMemcacheServers() as $server) {
$server->delete($key);
}
}
/** /**
* This function adds a server from the 'memcache_store.servers' * This function adds a server from the 'memcache_store.servers'
* configuration option to a Memcache object. * configuration option to a Memcache object.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment