Lines Matching defs:cache
564 private $cache;
581 $this->cache = new BatcheditSessionCache($expirationTime);
606 if (!$this->cache->isValid($this->id)) {
643 $this->cache->expire($this->id);
698 if (!$this->cache->isValid($this->id)) {
770 $this->cache->save($this->id, $name, $array);
777 return $this->cache->load($this->id, $name);
800 protected $cache;
805 public function __construct($pages, $cache) {
808 $this->cache = $cache;
815 if (!array_key_exists($pageId, $this->pages) || !array_key_exists($pageId, $this->cache)) {
820 $cache = $this->cache[$pageId]->getMatches();
822 if (!array_key_exists($offset, $matches) || !array_key_exists($offset, $cache)) {
826 if ($this->compareMatches($matches[$offset], $cache[$offset])) {
834 protected function compareMatches($match, $cache) {
835 return $match->getOriginalText() == $cache->getOriginalText() &&
836 $match->getReplacedText() == $cache->getReplacedText();
845 protected function compareMatches($match, $cache) {
846 return $match->getOriginalText() == $cache->getOriginalText();