Lines Matching refs:key
41 private function isLocked($key) { argument
43 if ((@memcache_get($this->connection, $key . '.lock')) === false) {
49 private function createLock($key) { argument
53 @memcache_add($this->connection, $key . '.lock', '', 0, 5);
56 private function removeLock($key) { argument
59 @memcache_delete($this->connection, $key . '.lock');
62 private function waitForLock($key) { argument
71 } while ($cnt <= $tries && $this->isLocked($key));
72 if ($this->isLocked($key)) {
74 $this->removeLock($key);
95 public function get($key, $expiration = false) { argument
97 if (($ret = @memcache_get($this->connection, $key)) === false) {
101 $this->delete($key);
109 * @param string $key
113 public function set($key, $value) { argument
116 if (@memcache_set($this->connection, $key, array('time' => time(),
124 * @param String $key
126 public function delete($key) { argument
128 @memcache_delete($this->connection, $key);