Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.27 KB

File metadata and controls

35 lines (27 loc) · 1.27 KB

CodeFactor Build Status

Bluster cache

This is very simple, very fast and lightweight in-memory storage based on LRU principle

Supported operations such as SET, GET, EXPIRE, DEL, FLUSH, SIZE, EXIST. Productive batching(pipeline). Basic implementation on Epoll(in test) and Kqueue sockets(only *nix systems)

Prompt pattern for banch client
Command Required Default
host[-h] false 127.0.0.1
port[-p] true -
requests[-r] false 10000
parallel clients[-c] false 2
mode[-m] false mono
key size[-ksz] false 2
value size[-vsz] false 2
batch size[-bsz] only for "batch" mode -
Batch mode: ./banch -p 8888 -r 1000000 -c 3 -m mono
Per request mode: ./banch -p 8888 -r 100000 -c 3 -m batch -bsz 50
Source requests format

format [msg_len]msg

Simple request: [17]set key somevalue
Pipelining: [38][set key somevalue,set key2 somevalue]

Illustration