Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.10.0
-
None
Description
Currently storm-redis provides AbstractRedisBolt for normal (not Trident) Bolt.
Jedis is easy to use so it may be enough, but we can also provide implementations of AbstractRedisBolt for simple usage.
eg. store (key, value) pair, get key's value
Since Redis has various data types and commands, we can't cover whole things, but seems like below things could be considered.
Type | Read | Write |
---|---|---|
STRING | GET (key) | SET (key, value) |
HASH | HGET (key, field) | HSET (key, field, value) |
LIST | LPOP (key) | RPUSH (key, value) |
SET | SCARD (key) | SADD (key, member) |
SORTED SET | ZSCORE (key, member) | ZADD (key, score, member) |
HLL (HyperLogLog) | PFCOUNT (key) | PFADD (key, element) |
Btw, since we will normally get key & value from tuple (as most external module did), HASH, SET, SORTED SET needs additional key to process.