Stash\Item::isMiss PHP Method

isMiss() public method

public isMiss ( )
    public function isMiss()
    {
        if (!isset($this->isHit)) {
            $this->get();
        }
        if ($this->isDisabled()) {
            return true;
        }
        return !$this->isHit;
    }

Usage Example

 protected function getAndLog($args)
 {
     $result = call_user_func_array(array($this->cache, 'get'), $args);
     $miss = $this->cache->isMiss();
     $key = $this->cache->getKey();
     if (isset($this->logger)) {
         $this->logger->logRequest($key, !$miss, $result);
     }
     return $result;
 }
All Usage Examples Of Stash\Item::isMiss