Cachearium\Backend\CacheRAM::cleanP PHP Method

cleanP() public method

public cleanP ( $base, $id )
    public function cleanP($base, $id)
    {
        unset($this->storage[$this->namespace . $base . $id]);
        return true;
    }

Usage Example

示例#1
0
 /**
  * (non-PHPdoc)
  * @see \Cachearium\Backend\CacheRAM::cleanP()
  */
 public function cleanP($base, $id)
 {
     // @codeCoverageIgnoreStart
     if (!$this->enabled) {
         throw new NotCachedException();
     }
     // @codeCoverageIgnoreEnd
     $group = $this->getGroupString(new CacheKey($base, $id));
     parent::cleanP($base, $id);
     $this->memcached->increment($group);
     return true;
 }