keyv.scan
0.000005

Iterates over keys.

Arguments
bucketrequired
The bucket the keys are stored under.
prefix
Restrict scanning to keys that match the prefix.
total
The total number of keys to return.
count
The number of keys to return in each scan. Defaults to 250.
cursor
The cursor from the previous response.
Return Value
A cursor-based enumerable that iterates over keys in a bucket.
something went wrong :(
Scanning through keys in a bucket
Setup
authorization=PROCAUTH
require "proc"

client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.keyv.scan.call(bucket: "y67f3013").each do |key|
  ...
end
client.keyv.scan.call(undefined, y67f3013).each((key) => {
  ...
});
curl "https://proc.run/keyv/scan?bucket=y67f3013" --silent --request POST \
--header "authorization: bearer $authorization" \
--header "accept: text/plain"
 

[...]

keyv.scan returns a cursor, providing a way for results to be fetched in multiple smaller sets—learn more in the docs.


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