-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed session storage interface to allow for usage in custom drivers
- Loading branch information
1 parent
e4f6217
commit 49041f2
Showing
5 changed files
with
58 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
/* | ||
* IconCaptcha - Copyright 2023, Fabian Wennink (https://www.fabianwennink.nl) | ||
* Licensed under the MIT license: https://www.fabianwennink.nl/projects/IconCaptcha/license | ||
* | ||
* The above copyright notice and license shall be included in all copies or substantial portions of the software. | ||
*/ | ||
|
||
namespace IconCaptcha\Storage; | ||
|
||
interface KeyValueStorageInterface | ||
{ | ||
/** | ||
* Retrieves a value from the key-value storage. | ||
* | ||
* @param string $key The unique key associated with the value. | ||
* @return mixed|null The stored value if it exists, or NULL if not found. | ||
*/ | ||
public function read(string $key); | ||
|
||
/** | ||
* Stores a value in the key-value storage. | ||
* | ||
* @param string $key The unique key where the value will be stored. | ||
* @param mixed $value The data to be stored. | ||
*/ | ||
public function write(string $key, $value): void; | ||
|
||
/** | ||
* Deletes a value from the key-value storage. | ||
* | ||
* @param string $key The key of the value to be removed. | ||
*/ | ||
public function remove(string $key): void; | ||
|
||
/** | ||
* Checks if a value is present in the key-value storage. | ||
* | ||
* @param string $key The key to be checked for existence. | ||
* @return bool TRUE if the value exists, FALSE otherwise. | ||
*/ | ||
public function exists(string $key): bool; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.