keyv.get0.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: "d9dd332b", value: "foo"
)
client.keyv.get.call(
bucket: "d9dd332b"
)
client.keyv.set.call(
undefined, d9dd332b
);
client.keyv.get.call(
undefined, d9dd332b
);
curl "https://proc.run/keyv/set?bucket=d9dd332b" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: text/plain" \
--data "foo"
curl "https://proc.run/keyv/get?bucket=d9dd332b" --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.