import { TpyKV } from "https://deno.land/x/tpy@v1.0.0-RC/mod.ts";
Compare and set a key's value.
Parameters
optional
ttl: Date | numberOptional ttl, either a number, which is the ttl in milliseconds, or a Date
when the key should expire.
Compare and set a key's value, setting the value only if the key does not already exist.
Parameters
optional
ttl: Date | numberOptional ttl, either a number, which is the ttl in milliseconds, or a Date
when the key should expire.
Compare and delete a key's value. This is functionally equivalent to delete
, if the prevValue
option is provided.
Parameters
Optional ttl, either a number, which is the ttl in milliseconds, or a Date
when the key should expire.
optional
ttl: Date | number