这是一个高速缓存服务器, 基于 linux, epoll, tcp, hashmap and mutil thread
- name:johnny
- email:[email protected]
make server
./server
telnet 127.0.0.1 12345
// 首先必须要登录
// 其次这个账号和密码暂时是固定的,写在代码里面的
login admin admin@minicache@123
set a1 xxx
get a1
// 可删除所有类型的数据,(键值对,列表,哈希表)
del a1
// 往列表里面添加数据
lpush a1 xxx
// 查看列表的长度
llen a1
// 在列表里面取个范围
lrange a1 0 10
// 展示列表里面所有数据
list a1
// 删除列表中指定的数据
ldel a1 1
hmset key1 child_key xxxx
hmget key1 child_key
hmdel key1 child_key
subsribe que1
publish que1 xxxx
based on php7
https://github.com/johnnylei/php_mini_cache.git
- add hashtable resize
- remove child process worker(because cannot share memory in mutil processes)
- 权限控制
- log
- 持久化