keyv.get
0.000005

Gets the value of a key.

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

client.keyv.get.call(
  bucket: "nab55428"
)
client.keyv.set.call(
  undefined, nab55428
);

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

curl "https://proc.run/keyv/get?bucket=nab55428" --silent --request POST \
--header "authorization: bearer $authorization" \
--header "content-type: text/plain"
 

foo


Stuck? Want to chat about an idea? Join the community on Discord.