keyv.updated
0.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: "i42a87e6", value: "foo"
)

client.keyv.updated.call(
  bucket: "i42a87e6"
)
client.keyv.set.call(
  undefined, i42a87e6
);

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

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