/**
  * Clear datas with $uid key
  * @param mixed $uid
  * @return void
  */
 public function clear($uid = null)
 {
     if ($uid) {
         return zend_shm_cache_delete($uid);
     }
     return zend_shm_cache_clear();
 }
Example #2
0
 /**
  * Unset data
  *
  * @param string $id          Cache id
  * @return boolean true if no problem
  */
 protected function _unset($id)
 {
     return zend_shm_cache_delete($this->_options['namespace'] . '::' . $id);
 }
Example #3
0
 /**
  * Deletes a value with the specified key from cache
  * This is the implementation of the method declared in the parent class.
  * @param string $key the key of the value to be deleted
  * @return boolean if no error happens during deletion
  */
 protected function deleteValue($key)
 {
     return zend_shm_cache_delete($key);
 }
Example #4
0
 /**
  * @see SugarCacheAbstract::_clearExternal()
  */
 protected function _clearExternal($key)
 {
     zend_shm_cache_delete($key);
 }
Example #5
0
 /**
  * Delete data from Zend Data SHM Cache
  *
  * @param  string $internalKey
  * @return boolean
  * @throws Exception\RuntimeException
  */
 protected function zdcDelete($internalKey)
 {
     return zend_shm_cache_delete($internalKey);
 }
Example #6
0
 /**
  * Delete data from Zend Data SHM Cache
  *
  * @param  string $internalKey
  * @return boolean
  * @throws Exception\RuntimeException
  */
 protected function zdcDelete($key)
 {
     return zend_shm_cache_delete($key);
 }
Example #7
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_shm_cache_delete($item->getKey());
     } else {
         throw new \InvalidArgumentException('Cross-Driver type confusion detected');
     }
 }
 /**
  * {@inheritdoc}
  */
 protected function doDelete($id)
 {
     return zend_shm_cache_delete($id);
 }
 /**
  * {@inheritdoc}
  */
 public function remove($key)
 {
     return zend_shm_cache_delete($key);
 }
Example #10
0
 protected function _delete($key)
 {
     zend_shm_cache_delete($this->key($key));
 }
Example #11
0
 /**
  * Remove a cache record
  *
  * @param  string $id cache id
  * @return boolean true if no problem
  */
 public function remove($id)
 {
     return zend_shm_cache_delete($this->_options['namespace'] . '::' . $id);
 }
Example #12
0
 /**
  * @param string $name Değer ismi
  * @return mixed
  */
 public function delete($name)
 {
     return zend_shm_cache_delete($name);
 }
Example #13
0
 public function delete($key)
 {
     $safeKey = $this->makeKey($key);
     $ret = @zend_shm_cache_delete($safeKey);
     return $ret;
 }
Example #14
0
 public function delete($key)
 {
     zend_shm_cache_delete("MongoObject::{$key}");
 }
 function __unset($key)
 {
     parent::__unset($key);
     zend_shm_cache_delete($this->_realKey($key));
 }