linux下高速缓存服务器实现

https://github.com/johnnylei/mini_cache

## mini_cache

this is a high performance and stable memory cache, based on **epoll** and **mutil thread**


## author
- name:johnny
- email:leiyuqing_jing@163.com


## usage
```
make server
./server
```


## 客户端
```
telnet 127.0.0.1 12345
```


## 键值对
### set 
```
set a1 xxx
```
### get 
```
get a1
```
### del
```
// 可删除所有类型的数据,(键值对,列表,哈希表)
del a1
```


## list 列表操作
### lpush
```
// 往列表里面添加数据
lpush a1 xxx
```
### llen
```
// 查看列表的长度
llen a1
```
### lrange 
```
// 在列表里面取个范围
lrange a1 0 10
```
### list
```
// 展示列表里面所有数据
list a1
```
### ldel 
```
// 删除列表中指定的数据
ldel a1 1
```


## hashmap 哈希表
### hmset
```
hmset key1 child_key xxxx
```
### hmget
```
hmget key1 child_key
```
### hmdel
```
hmdel key1 child_key
```


## next to do
- 优化server,不能每次请求都生成一个server,然后运行完成又把server销毁
- author,登录认证
- log
- 实现消息队列(message queue)
- 实现php扩展客户端(php extension client)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值