以 Redis 为底层,实现 Memcache 协议的主要几个常用命令,为〇山代码提供可持久化的 Memcache 实现
redis> 4
命令行启动
# 设置监听端口 export PORT=11211 # 设置 Redis 地址 export REDIS_URL=redis://127.0.0.1:6379/0 # 启动 ./redmemed使用容器
guoyk/redmemd
versionget,getsset,cas,add,replaceappend,prepend,incr,decrdelete,touchflush_all,quit
其中
- 所有命令支持
flags,cas token,exptime,noreply特性 - 所有命令支持原子化操作
Memcache 协议解析代码来自 https://github.com/rpcxio/gomemcached
Guo Y.K., MIT License