X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FCache%2FMemcache.php;h=142ea03593a4f69a517990f2b7c6cefc345d8b62;hb=24f8127938dec80960d388e50fd5b89aa450b494;hp=c84f5cc34d730287078210e121bf831b18f2d099;hpb=e33df30ac5111d147f811b4c1d4330457048159b;p=civicrm-core.git diff --git a/CRM/Utils/Cache/Memcache.php b/CRM/Utils/Cache/Memcache.php index c84f5cc34d..142ea03593 100644 --- a/CRM/Utils/Cache/Memcache.php +++ b/CRM/Utils/Cache/Memcache.php @@ -107,6 +107,12 @@ class CRM_Utils_Cache_Memcache { } } + /** + * @param $key + * @param $value + * + * @return bool + */ function set($key, &$value) { if (!$this->_cache->set($this->_prefix . $key, $value, FALSE, $this->_timeout)) { return FALSE; @@ -114,15 +120,28 @@ class CRM_Utils_Cache_Memcache { return TRUE; } + /** + * @param $key + * + * @return mixed + */ function &get($key) { $result = $this->_cache->get($this->_prefix . $key); return $result; } + /** + * @param $key + * + * @return mixed + */ function delete($key) { return $this->_cache->delete($this->_prefix . $key); } + /** + * @return mixed + */ function flush() { return $this->_cache->flush(); }