adaptor = new $class($expire); } else { throw new \Exception('Error: Could not load cache adaptor ' . $adaptor . ' cache!'); } } /** * Gets a cache by key name. * * @param string $key The cache key name * * @return string */ public function get($key) { return $this->adaptor->get($key); } /** * * * @param string $key The cache key * @param string $value The cache value * * @return string */ public function set($key, $value) { return $this->adaptor->set($key, $value); } /** * * * @param string $key The cache key */ public function delete($key) { return $this->adaptor->delete($key); } }