keyv.type
0.000005

Gets the type of key.

Arguments
bucketrequired
The bucket the key is stored under.
key
The key to get the type of.
Return Value
The type of value set for the key.
something went wrong :(
Transforming 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: "j8363b18", value: "foo"
)

client.keyv.type.call(
  bucket: "j8363b18"
)
client.keyv.set.call(
  undefined, j8363b18
);

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

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

string

Read more about keyv-value types in the docs.


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