bashcached
Feature
It is one file script (small, (($(< bashcached wc -l) < 100))!), and it requires only:
bashsocat
So, you can use it as soon as you download it.
It supports multiple connections and implements almost all memcached commands:
set,add,replace,appendandprependget,deleteandtouchincranddecrgetsandcasflush_allversionandquit
And, it supports to serve over tcp and unix domain socket.
Install
You could install base64, bash and socat via brew if you use macOS:
$ brew install base64 bash socat(In fact, bash is installed in the default on macOS, however it is too old to run bashcached.)
Or, you could install socat via apt if you use Ubuntu:
$ sudo apt install socatthen, download and chmod.
$ curl -LO https://git.io/bashcached
$ chmod +x bashcachedOr, you could use bpkg instaed of downloading script:
$ bpkg install MakeNowJust/bashcached -gUsage
$ ./bashcached --help
bashcached - memcached built on bash + socat
(C) TSUYUSATO "MakeNowJust" Kitsune 2016-2020 <make.just.on@gmail.com>
USAGE: bashcached [--help] [--version] [--license] [--protocol=tcp|unix] [--port=PORT] [--check=CHECK]
OPTIONS:
--protocol=tcp|unix protocol name to bind and listen (default: tcp)
--port=PORT port (or filename) to bind and listen (default: 25252)
--check=CHECK interval to check each cache's expire (default: 60)
--help show this help
--version show bashcached's version
--license show bashcached's license
$ ./bashcached &
$ telnet localhost 25252
version
VERSION 5.2.0-bashcached
set hello 0 0 11
hello world
STORED
get hello
VALUE hello 0 11
hello world
END
quitLicense and Copyright
MIT and

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
