Ensures that a key exists.
bucketrequiredThe bucket to store the key under.
keyThe key to touch.
trueif the key was touched, otherwise
keyv.touch ensures that a key exists. If the touched key does not exist, it will be created with a null value. If the
touched key already exists, its updated timestamp will be changed to the current time.
something went wrong :(
Ensuring that a key exists
require "proc" client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client"); const client = Proc.connect("PROCAUTH");
client.keyv.touch.call( bucket: "af53db92" )
client.keyv.touch.call( undefined, af53db92 );
curl "https://proc.run/keyv/touch?bucket=af53db92" --silent --request POST \ --header "authorization: bearer $authorization" \ --header "content-type: text/plain"
Stuck? Want to chat about an idea? Join the community on Discord.