/** * Clear cache */ public static function resetCache() { if (is_null(self::$_store)) { self::_connectStore(); } foreach (self::$_store as $k => $v) { if (self::$_cache) { self::$_cache->remove($k); } self::$_store->remove($k); } }
/** * Invalidate (remove) token * @param string $token */ public function removeToken($token) { self::$_storage->remove($token); }