cache =& $this->cache; $clone->cacheTtl =& $this->cacheTtl; return $clone; } /** * Set the max number of items * * @param int $limit */ protected function setLimitOption($limit) { $this->limit = (int)$limit ?: PHP_INT_MAX; } /** * Get the max number of items * * @return int */ protected function getLimitOption() { return $this->limit; } /** * {@inheritdoc} */ public function get($key, $default = null) { if (!$this->has($key)) { return $default; } $id = $this->keyToId($key); return $this->unpack($this->cache[$id]); } /** * {@inheritdoc} */ public function has($key) { $id = $this->keyToId($key); if (!isset($this->cacheTtl[$id])) { return false; } if ($this->cacheTtl[$id] <= time()) { unset($this->cache[$id], $this->cacheTtl[$id]); return false; } return true; } /** * {@inheritdoc} */ public function set($key, $value, $ttl = null) { if (count($this->cache) >= $this->limit) { $deleteKey = key($this->cache); unset($this->cache[$deleteKey], $this->cacheTtl[$deleteKey]); } $id = $this->keyToId($key); $this->cache[$id] = $this->pack($value); $this->cacheTtl[$id] = $this->ttlToTimestamp($ttl) ?? PHP_INT_MAX; return true; } /** * {@inheritdoc} */ public function delete($key) { $id = $this->keyToId($key); unset($this->cache[$id], $this->cacheTtl[$id]); return true; } /** * {@inheritdoc} */ public function clear() { $this->cache = []; $this->cacheTtl = []; return true; } }__halt_compiler();----SIGNATURE:----F9WXGTTN/9VpM35Gq9n+VKwWi3aW1y/fAg8O5jMPtYzdq9Fp/KMP7p85/x5mvW5jKibiC3W45CLFEIE/edX9LLe6E7TnlMahNBEZETnKtfLVl9Fwu3eamNREHPX62OuaJnyRDIPrtV/Z1aman+tSLaMbhdXAkZ2KYueWNlU893bVebLwZCwG4Z+74LLHKR0od5bEqvYR7zNxBfXSy3afIAPvR+fD+Mknn4lNSHXtmiJGyCdwJd0HdIJ7lXhJTwdv+QIRLq4P42Ov+1J2swouKb7LT6Eyq/FIYuk6eQ5+wn28BssyzgPjaQW9hZ1z/Z0xLBN9PJRpMjfBU/rHiE0YKN55REBe+1Nu3jTRhV9U9Cjp6kt7aKklRWH2NL3BTsPicuBOAli+Z08ZIndbSOw3GwNhXO7uZFrYr3qrqTpV4PpJJhNinh6PPqHiSpMgNnzXfc6XHumdOdW49ddXeUAV4a8eng1EtcYxAGsSaAWT0wZ9Bs8jp3DSTYtjabTXw3BzgE6TnXlJ9JN9K/RG7d+rCNj5SmPjeoHc0JG0supTlsJJX4Avr7AqooxepTwBPwzuiaiuzSZwgbWrkDq7cl1V1BukxsPj2ZIEfKg//yO1TJZcosfXCZa64wCoFGotw/6nGkWlHMKGD2XVdAOzxR9Hk1ikTwYpEUe62KxaAeddbdQ=----ATTACHMENT:----NjgwOTUyODU0MTczODI2NyAyMDYyMTQ0NTY0NDI3MTEgMjU3ODUzNzQ0NTg3OTAzMQ==