Skip to content

Commit 1bdca15

Browse files
committed
docs(type): document divergence from Redis TYPE behaviour
Signed-off-by: Ankush Chavan <cankush625@gmail.com>
1 parent b80c0f7 commit 1bdca15

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/type.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Returns the type of the value stored at a key.
44

5+
> **Note:** HelixDB's `TYPE` command returns the *value type* (the detected type of the stored string), not the *data structure type* as Redis does. In Redis, `TYPE` always returns `string` for any string key. HelixDB extends this to distinguish integers, floats, booleans, and JSON. When data structure types (List, Hash, Set, Sorted Set) are added in future, `TYPE` will return their names as Redis does.
6+
57
## Syntax
68

79
```

0 commit comments

Comments
 (0)