Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Zset length in KV

Reads the size of a sorted set (ZCARD); an absent key has size zero.

Reads the size of a sorted set (ZCARD); an absent key has size zero.

  • Path POST https://api.data.sylphx.com/v1/kv-zset-lens
  • Scope data:read
  • Effect read — nothing is written.
  • Collection kv
  • Host https://api.data.sylphx.com

#Request

FieldTypeWhat it is
namespace_idstringThe namespace's id. Required.
keystringThe sorted set's key. Required.

#Response

FieldTypeWhat it is
lengthuint64The number of members.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.data.sylphx.com/v1/kv-zset-lens" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key":"…","namespace_id":"…"}'