/**
  * Retrieves the item from the cache associated with this objects key.
  *
  * Value returned must be identical to the value original stored by set().
  *
  * If the cache is empty then null should be returned. However, null is also
  * a valid cache item, so the isMiss function should be used to check
  * validity.
  *
  * @return mixed
  */
 public function get($invalidation = 0, $arg = null, $arg2 = null)
 {
     return $this->_delegate->get($invalidation, $arg, $arg2);
 }
Example #2
0
 private function assertDisabledStash(ehough_stash_interfaces_ItemInterface $item)
 {
     $this->assertFalse($item->set('true'), 'storeData returns false for disabled cache');
     $this->assertNull($item->get(), 'getData returns null for disabled cache');
     $this->assertFalse($item->clear(), 'clear returns false for disabled cache');
     $this->assertTrue($item->isMiss(), 'isMiss returns true for disabled cache');
     $this->assertFalse($item->extend(), 'extend returns false for disabled cache');
     $this->assertTrue($item->lock(100), 'lock returns true for disabled cache');
 }