kitsonk / kv-toolbox

Utilities for working with Deno KV 🦕🗝️
https://kview.deno.dev/kv-toolbox
MIT License
66 stars 5 forks source link

Support for `expireIn` option #3

Closed yudai-nkt closed 1 year ago

yudai-nkt commented 1 year ago

I want to store 64+KiB images to KV with TTL, but kv-toolbox currently doesn't have an interface with the underlying Deno KV API (https://github.com/denoland/deno/pull/20091).

yudai-nkt commented 1 year ago

uh, I wasn't aware this option is currently available only in the CLI: https://deno.com/blog/kv-open-beta#key-ttl-with-expirein. Sorry if the PR is a bit hasty.

kitsonk commented 1 year ago

Thanks for raising the issue.

I will think about how it can be supported intelligently.

yudai-nkt commented 1 year ago

Thanks for the response. Feel free to close #4 if it's not a path you want to take.

kitsonk commented 1 year ago

Available in 0.0.4.