keyv.created
0.000005

Gets the created timestamp of a key.

Arguments
bucketrequired
The bucket the key is stored under.
key
The key to get the created timestamp for.
Return Value
The created timestamp, or null if the key does not exist.
something went wrong :(
Getting the created 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: "tf9a53e1", value: "foo"
)

client.keyv.created.call(
  bucket: "tf9a53e1"
)
client.keyv.set.call(
  undefined, tf9a53e1
);

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

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