A lightweight, portable cache database made with Golang
go install github.com/grqphical/cash@latest
cash
CLI Flags:
-port
: Port to use for server (default 6400)
-host
: IP to host on (default 0.0.0.0)
-file
: File to persist data to. Pass as empty string to disable persistent values (default cache.cashlog)
cash uses a simple query language similar to SQL. Multiple commands can be sent in one packet, just seperate them with semicolons
SET [key] [?COMPRESS] [value]
Sets ket to value, if COMPRESS is added as the second argument, the value will be compressed with gzip
GET [key]
Retrieves a key from the cache, if the key is compressed it will be automatically decompressed
DELETE [key]
Deletes a key from the cache
EXPIRES [key] [duration]
Sets a key to expire after the given duration. Duration is in seconds
cash is licensed under the MIT license