Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 559 Bytes

README.md

File metadata and controls

39 lines (33 loc) · 559 Bytes

gomemkv

A Distributed memory kv service

Supported command list

Command Time Complexity
set O(1)
get O(1)
del O(1)
append O(1)
strlen O(1)
setrange O(1)
lpush O(1)
lpop O(N)
rpush O(1)
rpop O(N)
lrange O(S + N)
llen O(1)
sadd O(1)
smemebers O(N)
scard O(1)
srandmember O(1)
srem O(N)
hset O(1)
hget O(1)
hgetall O(n)

run demo

execute follow commands in shell, have fun!

./gomemkv 0
./gomemkv 1
./gomemkv 2

redis-cli -p 12306