kevy4.0

IDX.COUNT

Count index entries matching a range or equality predicate.

IDX.COUNT name RANGE min max | EQ value
Group
Indexes
Since
3.0.0
Arity
at least 4
Flags
readonly extension

Complexity

O(log N + matched) per shard — NOT an O(1) counter and not a B-tree rank query; it counts the matched range

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

kevy only

kevy has this; Redis does not. nearest is FT.SEARCH with LIMIT 0 0

See also

IDX.CREATEIDX.DROPIDX.EXPLAINIDX.LISTIDX.QUERYIDX.REBUILDIDX.VERIFY

← All commands