Lines Matching refs:key
34 private function isLocked($key) { argument
35 if ((@apc_fetch($key . '.lock')) === false) {
41 private function createLock($key) { argument
44 @apc_add($key . '.lock', '', 5);
47 private function removeLock($key) { argument
49 @apc_delete($key . '.lock');
52 private function waitForLock($key) { argument
60 } while ($cnt <= $tries && $this->isLocked($key));
61 if ($this->isLocked($key)) {
63 $this->removeLock($key);
70 public function get($key, $expiration = false) { argument
72 if (($ret = @apc_fetch($key)) === false) {
76 $this->delete($key);
85 public function set($key, $value) { argument
86 if (@apc_store($key, array('time' => time(), 'data' => serialize($value))) == false) {
93 * @param String $key
95 public function delete($key) { argument
96 @apc_delete($key);