/** * @param $key * @param $value * @param $ttl */ protected function setChain($key, $value, $ttl) { InMemoryAdapter::getInstance()->set($key, $value, $ttl); if (null !== $this->nextAdapter) { $this->nextAdapter->set($key, $value, $ttl); } }
/** * @param string $key * @param int $value * @param null $ttl * @return $this */ public function set($key, $value, $ttl = null) { $this->cache->set($this->namespace . $key, $value, $ttl); return $this; }