예제 #1
0
 /**
  * Session destroy handler.
  * Do not call this method directly.
  * @param string $id session ID
  * @return boolean whether session is destroyed successfully
  */
 public function destroySession($id)
 {
     return (bool) $this->ssdb->del($this->calculateKey($id));
 }
예제 #2
0
파일: Cache.php 프로젝트: ijackwu/yii2-ssdb
 /**
  * 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
  */
 public function deleteValue($key)
 {
     $this->ssdb->hdel($this->cache_keys_hash, $key);
     return $this->ssdb->del($key);
 }
예제 #3
0
 /**
  * @see InterfaceCache
  */
 public function remove($sKey)
 {
     return $this->_oSsdb->del($sKey);
 }