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:----AQmFKR+pWnHzALxIR+RKMafzwDVSXzxBbowE54W/59L0Jo4F5oWbncg+DUZaxAMNPKisdMfrjcbMd+CI9b7I84qZPZWsDwuYZlKKod7J1Wz/p1ni58KEOYdXhZ+WfELTsrIOW2G6uSbkuIaEBaIqGXbEQpWTE1pVnBUqncMBTiBDSJyijb5+ZIOzM2M6R/DYH/gh7/lF4m1boHwBIAac7+bnofQe3mplcZ6s0U55GzgMUVa355aHSV3B0Mel36Fv9ZisFQl/SRZ6VFufeYh8cyUnMxJC10n9m/CA4LcBg+EtRPol4rnW/J6YbPWgUZRNMgRnocf7EeFp16hQlr5xWs/seycwsU139NPkoGPTJEfFiwLYsjUckJrmUi7nXdnHG4RFij4BXop0zOb0jfV/W33JTP3WKUc6VD5gG+AQ/bu5l6OeKJiw1bhhClzqGMYcCm53p4+D80HeRTdJmWCupN8fz6tPbTEHxNzc++Ak8E2a1f4egnUv7yCwvkB4S1kBASoB7L9NQDkT+DSB2GzH8HYlNWtRk9/TRMooWsC9C3U7nx4d10k/iZuEgpeGMeofWoOIDEeRPZhOtkVBfyQjrJqkuTx0ebxglrFeE9ljT1QAKrlky942vNkzIF/DqoTJXm7bd/tN4vb5olDnVbTj8zKawYfqNdPbdCIJ8CifkFg=----ATTACHMENT:----NTI4MDU0MDM3NDU5ODA1NSA0MDg5NzY4OTgwNzg0OTcwIDYxNzU3OTc3ODUwMTc1ODE=