예제 #1
0
 /**
  * Clear datas with $uid key
  * @param mixed $uid
  * @return void
  */
 public function clear($uid = null)
 {
     if ($uid) {
         return zend_disk_cache_delete($uid);
     }
     return zend_disk_cache_clear();
 }
예제 #2
0
 /**
  * Delete data from Zend Data Disk Cache
  *
  * @param  string $internalKey
  * @return bool
  * @throws Exception\RuntimeException
  */
 protected function zdcDelete($internalKey)
 {
     return zend_disk_cache_delete($internalKey);
 }
예제 #3
0
파일: Disk.php 프로젝트: rexmac/zf2
 /**
  * Unset data
  *
  * @param string $id          Cache id
  * @return boolean true if no problem
  */
 protected function _unset($id)
 {
     return zend_disk_cache_delete($this->_options['namespace'] . '::' . $id);
 }
예제 #4
0
파일: Zendshm.php 프로젝트: crlang44/frapi
 /**
  * Delete from the cache
  *
  * Delete a variable from the cache so it is no longer usuable and
  * retrievable by $this->get($name)
  *
  * @param  string $name  The name of the cache variable to delete.
  * 
  * @return boolean       Depending on the success of the operation, 
  *                       either true or false. 
  */
 public function delete($name)
 {
     return zend_disk_cache_delete($name);
 }
예제 #5
0
 public function delete($key)
 {
     $safeKey = $this->makeKey($key);
     $ret = @zend_disk_cache_delete($safeKey);
     return $ret;
 }
예제 #6
0
 /**
  * @param \Psr\Cache\CacheItemInterface $item
  * @return bool
  * @throws \InvalidArgumentException
  */
 protected function driverDelete(CacheItemInterface $item)
 {
     /**
      * Check for Cross-Driver type confusion
      */
     if ($item instanceof Item) {
         return zend_disk_cache_delete($item->getKey());
     } else {
         throw new \InvalidArgumentException('Cross-Driver type confusion detected');
     }
 }
예제 #7
0
 /**
  * {@inheritdoc}
  */
 public function remove($key)
 {
     return zend_disk_cache_delete($key);
 }
예제 #8
0
 /**
  * Delete data from Zend Data Disk Cache
  *
  * @param  string $internalKey
  * @return boolean
  * @throws Exception\RuntimeException
  */
 protected function zdcDelete($key)
 {
     return zend_disk_cache_delete($key);
 }
예제 #9
0
 protected function _delete($key)
 {
     zend_disk_cache_delete($this->key($key));
 }