Unverified Commit 394c8915 authored by An Nyeong's avatar An Nyeong
Browse files

Fix `set` to prevent chaing `created` field

Use INSERT ... ON CONFLICT ... DO UPDATE instead of INSERT OR REPLACE to
ensure that only the value and expires_at fields are updated when modifying
an existing key. This maintains the original created timestamp while still
allowing TTL updates.

Added test case to verify that created timestamp remains unchanged during
updates while expires_at is properly modified.
parent 80110a1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment