Quickie is a database caching solution to cache data using redis, written in Go.
Follow the steps below to install and setup quickie.
Install the dependencies and set up the project by running:
go get && go run src/impl.go
This will run a Gin webserver on port 8080
.
Next, set up a environment variable known as SECRET
with the secret key required to access the endpoints.
NOTE: To access any endpoints, an Authorization header with a secret needs to be provided, for more details on configuring this, check Installation & Setup.
This service exposes the following endpoints:
curl http://localhost:8080/set/datastore?key=name&value=jack
Where datastore is the table name — "name" and "jack" are the key and value respectively.
curl http://localhost:8080/get/datastore?key=name
Where datastore is the table name and "name" is the key.