Ejemplo n.º 1
0
 /**
  * Instantiates a cache adapter
  *
  * @param  string               $adapter The cache adapter to instantiate. Defaults to apc.
  * @return Koch_Cache_Interface Cache object of the requested adapter type.
  */
 public static function instantiate($adapter = 'apc')
 {
     if (self::$cacheObject === null) {
         self::$cacheObject = Koch_Cache_Factory::getCache($adapter);
     }
     return self::$cacheObject;
 }
Ejemplo n.º 2
0
Archivo: Cache.php Proyecto: ksst/kf
 /**
  * Instantiates a cache adapter.
  *
  * @param string $adapter The cache adapter to instantiate. Defaults to apc.
  *
  * @return KochCache_Interface Cache object of the requested adapter type.
  */
 public static function instantiate($adapter = 'apc')
 {
     if (self::$cacheAdapter === null) {
         self::$cacheAdapter = self::factory($adapter);
     }
     return self::$cacheAdapter;
 }