Lines Matching refs:key
57 public function write($key, $data) argument
59 $handle = fopen(self::$save_path . "/" . $this->prefix . $key, "ab");
64 …self::$save_path . "/" . $this->prefix . $key . "] but failed. Check the permissions, or don't us…
72 public function clear($key) argument
74 @unlink(self::$save_path . "/" . $this->prefix . $key);
81 public function has($key) argument
83 return file_exists(self::$save_path . "/" . $this->prefix . $key);
91 public function read($key, $size=null) argument
94 if (!$this->has($key)) return false;
96 if (!isset($this->open[$key]))
98 $this->open[$key] = fopen(self::$save_path . "/" . $this->prefix . $key, "rb");
100 if (feof($this->open[$key]))
102 fclose($this->open[$key]);
103 unset($this->open[$key]);
106 $ret = fread($this->open[$key], $size);
113 fclose($this->open[$key]);
114 unset($this->open[$key]);