Ejemplo n.º 1
0
 /**
  * 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);
     }
 }
Ejemplo n.º 2
0
 /**
  * Invalidate (remove) token
  * @param string $token
  */
 public function removeToken($token)
 {
     self::$_storage->remove($token);
 }