expire('foo'); * * @param string $arg a single key */ public function expire($arg); /**1 * Expire all items from the cache. */ public function flush(); /** * Retrieve item from the server. * * Example: * * # reads foo * $foo = $cache->reads('foo'); * * @param string $arg a single key * * @return mixed the previously stored data if an item with such a key * exists on the server or FALSE on failure. */ public function read($arg); /** * Store data at the server. * * @param string $name the item's key. * @param mixed $content the item's content (will be serialized if necessary). * @param int $expires the item's expiry time in seconds. Optional, defaults to 12h. * * @return bool returns TRUE on success or FALSE on failure. */ public function write($name, $content, $expires = self::DEFAULT_EXPIRATION); /** * @return string A translateable display name for this cache class. */ public static function getDisplayName(): string; /** * Get some statistics from cache, like number of entries, hit rate or * whatever the underlying cache provides. * Results are returned in form of an array like * "[ * [ * 'name' => * 'value' => * ] * ]" * * @return array */ public function getStats(): array; /** * Return the Vue component name and props that handle configuration. * The associative array is of the form * [ * 'component' => , * 'props' => * ] * * @return array */ public static function getConfig(): array; }