Blobcached is a memcached protocol-compatible cache server for blob on SSD.
Command | Format |
---|---|
get | get []+\r\n |
set | set [noreply]\r\n\r\n |
delete | delete [noreply]\r\n |
touch | touch [noreply]\r\n |
stats | stats\r\n |
Name | |
---|---|
indexfile | an indexfile contains many of items powered by blotdb |
datafile | a regular file for storing values |
item | an item is made up of key , offset , term , size anchoring the value in datafile |
term | everytime the datafile is full, the term of datafile is increased |
- get the
offset
andterm
ofdatafile
- write value to the
datafile
- write
item
with theoffset
,term
andkey
to theindexfile
- get the
item
bykey
- check
term
andoffset
of theitem
againstdatafile
- read value from the
datafile
- implemented by
get
&set
- Blobcached scans and removes expired or invalid
items
in theindexfile
- by default, the rate up to 32k items/second