Lines Matching refs:value
78 * Fetches a value from the cache.
86 * @param mixed $default Default value to return if the key does not exist.
88 * @return array|mixed The value of the item from the cache, or $default in case of cache miss.
91 * MUST be thrown if the $key string is not a legal value.
109 * public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool;
113 * @param array $value The value of the item to store, must be serializable.
114 * @param null|int $ttl Optional. The TTL value of this item. If no value is sent and
115 * the driver supports TTL then the library may set a default value
121 * MUST be thrown if the $key string is not a legal value.
123 public function set_data(string $key, array $value, ?int $ttl = null): bool
125 return $this->cache->set($key, $value, $ttl);
141 * MUST be thrown if the $key string is not a legal value.