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

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

Returns true if the cached item needs to be refreshed.
public isMiss ( ) : boolean
Результат boolean
    public function isMiss();

Usage Example

Пример #1
0
 function it_expands_a_url(Provider $provider, PoolInterface $pool, ItemInterface $item)
 {
     $item->isMiss()->willReturn(true);
     $item->set('http://any.url')->shouldBeCalled();
     $pool->getItem(md5('http://short.ly/1234'))->willReturn($item);
     $provider->expand('http://short.ly/1234')->willReturn('http://any.url');
     $this->expand('http://short.ly/1234')->shouldReturn('http://any.url');
 }
All Usage Examples Of Stash\Interfaces\ItemInterface::isMiss