/** * Clears the persistent storage. * * Clears the persistent storage, i.e. removes all keys. Locks are left * intact. * * @return void */ public abstract function clear(); /** * Retrieve an external iterator * * Returns an external iterator. * * @param string|null $filter A PCRE regular expression. * Only matching keys will be iterated over. * Setting this to NULL matches all keys of this instance. * @param bool $keysOnly Whether to return only the keys, * or return both the keys and values. * * @return \Traversable An array with all matching keys as array keys, * and values as array values. If $keysOnly is TRUE, the array keys are * numeric, and the array values are key names. */ public abstract function getIterator($filter = null, $keysOnly = false); } SHM::registerAdapter('\\' . __NAMESPACE__ . '\\SHM\\Adapter\\Placebo'); SHM::registerAdapter('\\' . __NAMESPACE__ . '\\SHM\\Adapter\\Wincache'); SHM::registerAdapter('\\' . __NAMESPACE__ . '\\SHM\\Adapter\\APCu'); SHM::registerAdapter('\\' . __NAMESPACE__ . '\\SHM\\Adapter\\APC');