nuster 是一个基于 HAProxy 的高性能 HTTP 缓存服务器和 RESTful NoSQL 缓存服务器,既能够用做相似 Varnish 或者 Nginx 那样的 HTTP 缓存服务器,来缓存动态或者静态的 HTTP 资源,也能够用做 RESTful NoSQL 缓存服务器, 用 HTTP POST/GET/DELETE 来 添加 /取得 /删除 Key/Value。 git
https://github.com/jiangwenyu...github
此次更新主要添加对硬盘持久化的支持sql
支持四种持久模式缓存
配置文件服务器
global master-worker nuster cache on data-size 10m dir /tmp/cache nuster nosql on data-size 10m dir /tmp/nosql backend be nuster cache on nuster rule off disk off ttl 1m if { path_beg /disk-off } nuster rule only disk only ttl 1d if { path_beg /disk-only } nuster rule sync disk sync ttl 1h if { path_beg /disk-sync } nuster rule async disk async ttl 2h if { path_beg /disk-async } nuster rule others ttl 100
/disk-off
仅保存在内存/disk-only
仅保存在硬盘/disk-sync
保存至内存和硬盘后返回给客户端/disk-async
保存至内存后当即换回给客户端,内存数据会在必定时间后被缓存至硬盘