continued 7.4 compatibility

This commit is contained in:
Lorenzo Yario 2024-12-22 14:42:16 -06:00 committed by GitHub
parent c94ab113de
commit 762a0edefd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,7 @@ interface CacheDriver {
* @param string $key The key of the value. * @param string $key The key of the value.
* @return mixed|null The value associated with the key, or null if there is none. * @return mixed|null The value associated with the key, or null if there is none.
*/ */
public function get(string $key): mixed; public function get(string $key);
/** /**
* Set a key-value pair. * Set a key-value pair.
@ -22,17 +22,17 @@ interface CacheDriver {
* the value until it gets evicted to make space for more items. Some drivers will always * the value until it gets evicted to make space for more items. Some drivers will always
* ignore this parameter and store the pair until it's removed. * ignore this parameter and store the pair until it's removed.
*/ */
public function set(string $key, mixed $value, mixed $expires = false): void; public function set(string $key, $value, $expires = false);
/** /**
* Delete a key-value pair. * Delete a key-value pair.
* *
* @param string $key The key. * @param string $key The key.
*/ */
public function delete(string $key): void; public function delete(string $key);
/** /**
* Delete all the key-value pairs. * Delete all the key-value pairs.
*/ */
public function flush(): void; public function flush();
} }