Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support unless_exist #188

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Support unless_exist #188

merged 1 commit into from
Jul 23, 2024

Conversation

djmb
Copy link
Collaborator

@djmb djmb commented Jul 22, 2024

Add support for the unless_exist option to the write method. This will not overwrite the value and return false if the key already exists in the cache and is not expired.

Fixes: #183

@djmb djmb changed the base branch from query-cache-free-queries to main July 23, 2024 09:13
We can't just insert and see if the record exists, we need to lock and
check if it has expired.
@djmb djmb merged commit 4626c66 into main Jul 23, 2024
37 checks passed
@djmb djmb deleted the unless-exist branch July 23, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for write with unless_exist: true
1 participant