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: "s84f1747", value: "foo"
)

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

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

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