Skip to content

Commit 8e07bdd

Browse files
committed
The Spiral\RoadRunner\KeyValue\Cache class will set the value regardless of whether it exists or not - it always resolves the lock, you need to check for the existence of the key using the has method
1 parent 9803519 commit 8e07bdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The format is based on [Keep a Changelog][keepachangelog] and this project adher
2121
- Fixed the `$ttl` in the `increment` method
2222
- The `forever` method passed `$seconds` as 0, `Spiral\RoadRunner\KeyValue` summed `timestamp + 0`, and `forever` was not `forever`
2323
- When using `prefix`, the `many` method returns values with `prefix`
24+
- The `Spiral\RoadRunner\KeyValue\Cache` class will set the value regardless of whether it exists or not - it always resolves the lock, you need to check for the existence of the key using the `has` method
2425

2526
[#147]:https://github.com/roadrunner-php/laravel-bridge/issues/147
2627

0 commit comments

Comments
 (0)