cd cmd
go run main.go
# on another terminal
redis-cli -p 8081
- Compatible with Redis CLI
- Single-threaded architecture
- Multiplexing IO for Linux using epoll
- RESP protocol
- Graceful shutdown
- Simple eviction mechanism
- Commands:
- PING
- SET
- GET
- TTL
- DEL
- EXPIRE
- INCR
- ZADD
- ZRANK
- ZREM
- ZSCORE
- ZCARD
- GEOADD
- GEODIST
- GEOHASH
- Geohash commands:
- GEOADD
- GEODIST
- GEOHASH
- GEOSEARCH
- Bloom filter commands
- Hyperloglog
- Count-min sketch
- Morris counter
- Cuckoo filter
- Approx LRU eviction