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: "m207ad18", value: "foo", ttl: 60
)

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

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

curl "https://proc.run/keyv/persist?bucket=m207ad18" --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.