nuster v3.0.0.19 released, now supports disk persistence
https://github.com/jiangwenyuan/nuster
There are four MODEs.
- off: default, disable disk persistence, data are stored in memory only
- only: save data to disk only, do not store in memory
- sync: save data to memory and disk(kernel), then return to the client
- async: save data to memory and return to the client, cached data will be saved to disk later by the master process
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-offwill be cached only in memory
- /disk-onlywill be cached only in disk
- /disk-syncwill be cached in memory and in disk, then return to the client
- /disk-asyncwill be cached in memory and return to the client, cached data will be saved to disk later
- other requests will be cached only in memory
Top comments (0)