示例#1
0
文件: XCache.php 项目: endeveit/cache
 /**
  * {@inheritdoc}
  *
  * @codeCoverageIgnore
  * @param array $options
  */
 public function __construct(array $options = array())
 {
     parent::__construct($options);
     $this->callbacks = array('increment' => 'xcache_inc', 'decrement' => 'xcache_dec', 'exists' => 'xcache_isset', 'load' => 'xcache_get', 'save' => 'xcache_set');
 }
示例#2
0
文件: Apc.php 项目: endeveit/cache
 /**
  * {@inheritdoc}
  *
  * @codeCoverageIgnore
  * @param array $options
  */
 public function __construct(array $options = array())
 {
     parent::__construct($options);
     $this->callbacks = array('increment' => 'apc_inc', 'decrement' => 'apc_dec', 'exists' => 'apc_exists', 'load' => 'apc_fetch', 'save' => 'apc_store');
 }