Exemplo n.º 1
0
 /**
  * Delete key from cache(s).
  *
  * This method deletes a key from the cache instance.
  *
  * @param  string  The cached key to delete.
  * @return void
  */
 public static function deleteCached($key)
 {
     self::log('cache-delete', $key);
     $hash = self::getHash();
     if (!isset(self::$cache)) {
         self::$cache = Frapi_Cache::getInstance(FRAPI_CACHE_ADAPTER);
     }
     return self::$cache->delete($hash . '-' . $key);
 }
Exemplo n.º 2
0
 public static function getConfiguration($type)
 {
     if (!isset(self::$cache)) {
         self::$cache = Frapi_Cache::getInstance(FRAPI_CACHE_ADAPTER);
     }
     if (!isset(self::$conf[$type])) {
         self::initConfiguration($type);
     }
     return self::$conf[$type];
 }