Skip to main content

HSTRLEN

Syntax

HSTRLEN key field [field ...]

Module

hash

Categories

fast hash read

Description

Return the string length of the values stored at the specified fields. Returns 0 if the value does not exist.

Examples

Return the string length of the values stored at the specified fields:

vault, err := echovault.NewEchoVault()
if err != nil {
log.Fatal(err)
}
lengths, err := vault.HStrLen("key", "field1", "field2", "field3")