Lodis
-----------------------------------------------------------------------
|_____________________________________________________________________X
| < | > | x |_____________________________________________________|
-----------------------------------------------------------------------
| _._ |
| _.-``__ ''-._ |
| _.-`` `. `_. ''-._ |
| .-`` .-```. ```\\/ _.,_ ''-._ |
| ( ' , .-` | `, ) |
| |`-._`-...-` __...-.``-._|'` _.-'| Lodis 0.1 |
| | `-._ `._ / _.-' | |
| `-._ `-._ `-./ _.-' _.-' like Redis |
| |`-._`-._ `-.__.-' _.-'_.-'| but in a browser |
| | `-._`-._ _.-'_.-' | |
| `-._ `-._`-.__.-'_.-' _.-' |
| |`-._`-._ `-.__.-' _.-'_.-'| |
| | `-._`-._ _.-'_.-' | |
| `-._ `-._`-.__.-'_.-' _.-' |
| `-._ `-.__.-' _.-' |
| `-._ _.-' github.com/elcuervo/lodis |
| `-.__.-' |
|---------------------------------------------------------------------|
-----------------------------------------------------------------------
Compatibility
Redis 2.4
Supported commands
- SET โ
- GET โ
- DEL โ
- EXISTS โ
- EXPIRE โ
- DBSIZE โ
- EXPIREAT โ
- KEYS โ
- APPEND key, value โ
- AUTH password โ
- BGREWRITEAOF โ
- BGSAVE โ
- BLPOP key [key ...] timeout
- BRPOP key [key ...] timeout
- BRPOPLPUSH source destination timeout
- CONFIG GET parameter
- CONFIG SET parameter value
- CONFIG RESETSTAT
- DEBUG OBJECT key
- DEBUG SEGFAULT
- DECR key โ
- DECRBY key decrement โ
- DISCARD
- ECHO message โ
- EXEC
- FLUSHALL โ
- FLUSHDB โ
- GETBIT key offset
- GETRANGE key start end โ
- GETSET key value โ
- HDEL key field [field ...] โ
- HEXISTS key field โ
- HGET key field โ
- HGETALL key โ
- HINCRBY key field increment โ
- HKEYS key โ
- HLEN key โ
- HMGET key field [field ...] โ
- HMSET key field value [field value ...] โ
- HSET key field value โ
- HSETNX key field value โ
- HVALS key โ
- INCR key โ
- INCRBY key increment โ
- INFO
- LASTSAVE
- LINDEX key index โ
- LINSERT key BEFORE|AFTER pivot value โ
- LLEN key โ
- LPOP key โ
- LPUSH key value [value ...] โ
- LPUSHX key value โ
- LRANGE key start stop โ
- LREM key count value โ
- LSET key index value โ
- LTRIM key start stop โ
- MGET key [key ...] โ
- MONITOR
- MOVE key db
- MSET key value [key value ...] โ
- MSETNX key value [key value ...] โ
- MULTI
- OBJECT subcommand [arguments [arguments ...]]
- PERSIST key โ
- PING โ
- PSUBSCRIBE pattern [pattern ...]
- PUBLISH channel message
- PUNSUBSCRIBE [pattern [pattern ...]]
- QUIT
- RANDOMKEY โ
- RENAME key newkey โ
- RENAMENX key newkey โ
- RPOP key โ
- RPOPLPUSH source destination โ
- RPUSH key value [value ...] โ
- RPUSHX key value โ
- SADD key member [member ...] โ
- SAVE โ
- SCARD key โ
- SDIFF key [key ...] โ
- SDIFFSTORE destination key [key ...] โ
- SELECT index โ
- SETBIT key offset value
- SETEX key seconds value โ
- SETNX key value โ
- SETRANGE key offset value โ
- SHUTDOWN โ
- SINTER key [key ...] โ
- SINTERSTORE destination key [key ...] โ
- SISMEMBER key member โ
- SLAVEOF host port
- SLOWLOG subcommand [argument]
- SMEMBERS key โ
- SMOVE source destination member โ
- SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]
- SPOP key โ
- SRANDMEMBER key โ
- SREM key member [member ...] โ
- STRLEN key โ
- SUBSCRIBE channel [channel ...]
- SUNION key [key ...]
- SUNIONSTORE destination key [key ...]
- SYNC
- TYPE key โ
- UNSUBSCRIBE [channel [channel ...]]
- UNWATCH
- WATCH key [key ...]
- ZADD key score member
- ZCARD key
- ZCOUNT key min max
- ZINCRBY key increment member
- ZINTERSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
- ZRANGE key start stop [WITHSCORES]
- ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
- ZRANK key member
- ZREM key member
- ZREMRANGEBYRANK key start stop
- ZREMRANGEBYSCORE key min max
- ZREVRANGE key start stop [WITHSCORES]
- ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
- ZREVRANK key member
- ZSCORE key member
- ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
TODO
- Store expirations within Lodis itself to avoid expiration dates on reload
- Should handle types in a different way? custom types to match Redis?
- Sync with Redis via HTTP?