HLEN

Works with hash fields stored under one key.

Syntax

HLEN <key>

Parameters

  • key: Primary key to read or mutate.

Returns

Returns an integer count, length, or mutation result.

Examples

HLEN user:1

BetterKV Notes

  • Group: Hash.
  • Access: Read-only.
  • Status: Implemented in BetterKV and safe to use for read paths.