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: "q48ffc3e" )
client.keyv.touch.call( undefined, q48ffc3e );
curl "https://proc.run/keyv/touch?bucket=q48ffc3e" --silent --request POST \ --header "authorization: bearer $authorization" \ --header "content-type: text/plain"
Stuck? Want to chat about an idea? Join the community on Discord.