denokv
denokv copied to clipboard
Deno.KV expireIn time
Either there's a bug, or I don't understand how {expireIn} works or the documentation is not right.
I'm doing:
await kv.set(key, value, { expireIn: 4000 });
In this code, I'm expecting the key/value to expire and return null after 4 seconds (4000 milliseconds).
However, the get() function continues to work.
It eventually does expire, but not in 4 seconds or 4000 seconds. Is this a bug?