denokv icon indicating copy to clipboard operation
denokv copied to clipboard

Deno.KV expireIn time

Open jsb188 opened this issue 9 months ago • 2 comments

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?

jsb188 avatar May 26 '24 20:05 jsb188