cache)) { return $miss; } return $this->cache[$key]; } public function doSet($key, $value, $ttl) { $this->cache[$key] = $value; return true; } public function doDelete($key) { unset($this->cache[$key]); return true; } public function doClear() { $this->cache = []; return true; } public function doHas($key) { return array_key_exists($key, $this->cache); } }