Lines Matching refs:string
70 * public function get(string $key, mixed $default = null): mixed;
73 * @param string $key The unique key of this item in the cache.
79 * MUST be thrown if the $key string is not a legal value.
81 public function get_data(string $key, $default = null);
88 * public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool;
91 * @param string $key The key of the item to store.
100 * MUST be thrown if the $key string is not a legal value.
102 public function set_data(string $key, array $value, ?int $ttl = null): bool;
109 * public function delete(string $key): bool;
112 * @param string $key The unique cache key of the item to delete.
117 * MUST be thrown if the $key string is not a legal value.
119 public function delete_data(string $key): bool;