keyv.persist
0.000005

Removes the expiry of a key.

Arguments
bucketrequired
The bucket the key is stored under.
key
The key to remove the expiry for.
Return Value
true if the expiry was removed for the key, otherwise false.
something went wrong :(
Removing the expiry for a key
Setup
authorization=PROCAUTH
require "proc"

client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.keyv.set.call(
  bucket: "w6114254", value: "foo", ttl: 60
)

client.keyv.persist.call(
  bucket: "w6114254"
)
client.keyv.set.call(
  undefined, w6114254
);

client.keyv.persist.call(
  undefined, w6114254
);
curl "https://proc.run/keyv/set?bucket=w6114254&ttl=60" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: text/plain" \
--data "foo"

curl "https://proc.run/keyv/persist?bucket=w6114254" --silent --request POST \
--header "authorization: bearer $authorization" \
--header "content-type: text/plain"
 

true


Stuck? Want to chat about an idea? Join the community on Discord.