Skip to content

Commit c74638c

Browse files
author
Andrey Helldar
authored
Merge pull request #18 from TheDragonCode/2.x
Added `doesntHave` method for Laravel Cache package
2 parents b1e07be + ec2782e commit c74638c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Cache/Store.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,18 @@ public function put(string $key, $value, int $seconds);
4848
* @param string $key
4949
*/
5050
public function forget(string $key): void;
51-
51+
5252
/**
5353
* Checks for the existence of a key.
5454
*
5555
* @param string $key
5656
*/
5757
public function has(string $key): bool;
58+
59+
/**
60+
* Checks the key for its absence.
61+
*
62+
* @param string $key
63+
*/
64+
public function doesntHave(string $key): bool;
5865
}

0 commit comments

Comments
 (0)