Stash\Interfaces\ItemInterface::clear PHP Метод

clear() публичный Метод

Clears the current Item. If hierarchical or "stackable" caching is being used this function will also remove children Items.
public clear ( ) : boolean
Результат boolean
    public function clear();

Usage Example

Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function signOut()
 {
     $token = $this->tokenCache->get();
     if ($token && !$this->tokenCache->isMiss()) {
         $this->getClient()->get('https://identity.auth.theplatform.com/idm/web/Authentication/signOut', array('query' => array('schema' => '1.0', 'form' => 'json', '_token' => $token)));
         $this->getLogger()->info('Expired mpx authentication token {token} for {username}.', array('token' => $token, 'username' => $this->getUsername()));
     }
     $this->tokenCache->clear();
 }
All Usage Examples Of Stash\Interfaces\ItemInterface::clear