keyv.updated0.000005
Gets the updated timestamp of a key.
Arguments
bucketrequired
The bucket the key is stored under.key
The key to get the updated timestamp for.Return Value
The updated timestamp, or null if the key does not exist.something went wrong :(
Getting the updated timestamp 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: "o4276360", value: "foo"
)
client.keyv.updated.call(
bucket: "o4276360"
)
client.keyv.set.call(
undefined, o4276360
);
client.keyv.updated.call(
undefined, o4276360
);
curl "https://proc.run/keyv/set?bucket=o4276360" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: text/plain" \
--data "foo"
curl "https://proc.run/keyv/updated?bucket=o4276360" --silent --request POST \
--header "authorization: bearer $authorization" \
--header "content-type: text/plain"
1617993751.739105
Stuck? Want to chat about an idea? Join the community on Discord.