@@ -35,12 +35,35 @@ var (
35
35
"SETRANGE" : staticIndexRewriter (0 ),
36
36
"STRLEN" : staticIndexRewriter (0 ),
37
37
"SUBSTR" : staticIndexRewriter (0 ),
38
+ "DEL" : indexedRewriteExecutors (func (idx int , _ interface {}) bool { return true }),
38
39
}
39
40
40
41
genericExecutors = map [string ]Executor {}
41
42
listExecutors = map [string ]Executor {}
42
43
hashExecutors = map [string ]Executor {}
43
- sortedSetExecutors = map [string ]Executor {}
44
+ sortedSetExecutors = map [string ]Executor {
45
+ "ZADD" : staticIndexRewriter (0 ),
46
+ "ZCOUNT" : staticIndexRewriter (0 ),
47
+ "ZRANGE" : staticIndexRewriter (0 ),
48
+ "ZREM" : staticIndexRewriter (0 ),
49
+ "ZCARD" : staticIndexRewriter (0 ),
50
+ "ZSCORE" : staticIndexRewriter (0 ),
51
+ "ZSCAN" : staticIndexRewriter (0 ),
52
+ "ZRANK" : staticIndexRewriter (0 ),
53
+ "ZREVRANK" : staticIndexRewriter (0 ),
54
+ "ZREMRANGEBYSCORE" : staticIndexRewriter (0 ),
55
+ "ZREMRANGEBYRANK" : staticIndexRewriter (0 ),
56
+ "ZREMRANGEBYLEX" : staticIndexRewriter (0 ),
57
+ "ZRANDMEMBER" : staticIndexRewriter (0 ),
58
+ "ZPOPMIN" : staticIndexRewriter (0 ),
59
+ "ZPOPMAX" : staticIndexRewriter (0 ),
60
+ "ZINCRBY" : staticIndexRewriter (0 ),
61
+ "ZLEXCOUNT" : staticIndexRewriter (0 ),
62
+ "ZREVRANGE" : staticIndexRewriter (0 ),
63
+ "ZDIFF" : indexedRewriteExecutors (func (idx int , _ interface {}) bool { return idx > 0 }),
64
+ "ZDIFFSTORE" : indexedRewriteExecutors (func (idx int , _ interface {}) bool { return idx == 0 || idx > 1 }),
65
+ "ZRANGESTORE" : indexedRewriteExecutors (func (idx int , _ interface {}) bool { return idx < 2 }),
66
+ }
44
67
45
68
serverExecutors = map [string ]Executor {
46
69
"FLUSHDB" : flushDBExecutor {},
0 commit comments