Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

FEATURE.SCHEMA

Last updated
FEATURE.SCHEMA group
Group
Feature store
Complexity
O(F) where F is the number of features
Arity
2 (exactly, counting the command name)
Flags
read-only, fast
Keys
first 1, last 1, step 1
HotKV Cloud
Performance and Scale
On-Premise
requires the feature-store license feature

The feature store keeps typed feature values for entities (users, items, sessions) in named feature groups, for low-latency reads at model inference time. FEATURE.SCHEMA returns the group’s features in schema order.

Case RESP2 RESP3
Group found Array of two-element arrays: the feature name and its type (int64, double or string), as bulk strings Same

Errors:

  • ERR group not found if the group does not exist.
  • ERR wrong number of arguments for 'feature.schema' command if the argument count is wrong.
  • NOLICENSE feature-store requires a HotKV license. Contact sales@hotkv.com if your license does not include the feature-store feature.
127.0.0.1:6379> FEATURE.SCHEMA user_features
1) 1) "age"
2) "int64"
2) 1) "ctr"
2) "double"
3) 1) "country"
2) "string"

HotKV-only command. Redis and Valkey have no equivalent.

FEATURE.CREATE, FEATURE.SET, FEATURE.GET, FEATURE.BATCH, FEATURE.STATS, FEATURE.DROP, FEATURE.LIST, AI features guide