TYPE

Works at the keyspace layer rather than on a single concrete data type.

Syntax

TYPE <key>

Parameters

  • key: Primary key to read or mutate.

Returns

Returns a Redis-compatible reply whose exact shape depends on the command and selected options.

Examples

TYPE session:1

BetterKV Notes

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