Make PUT on SQLite backend implicitly overwrite expired entries

The backend does not serve expired but still present entries so to a
user they do not exist. When they put new data over such an entry their
expecation is that the value is overwritten, even if not explicitly
requested.
This commit is contained in:
Benjamin Bannier 2025-07-01 08:14:33 +02:00 committed by Tim Wojtulewicz
parent 2f67539c0f
commit 16c40f4f3a
3 changed files with 52 additions and 21 deletions

View file

@ -1,3 +1,4 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
BEFORE, [code=Storage::SUCCESS, error_str=<uninitialized>, value=v]
AFTER, [code=Storage::KEY_NOT_FOUND, error_str=<uninitialized>, value=<uninitialized>]
OVERWRITE, [code=Storage::SUCCESS, error_str=<uninitialized>, value=vv]