datalinkhq / quickie

A "blazingly fast" database caching implementation built using Go & Redis.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quickie - Yet another redis implementation

What is this?

Quickie is a database caching solution to cache data using redis, written in Go.

Installation & Setup

Follow the steps below to install and setup quickie.

Prerequisites:

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.

Usage

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:

/set/:table - Set a key, value pair in a table

Required Query Parameters: value, key

Example Request:

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.

/get/:table - Set a key, value pair in a table

Required Query Parameters: key

Example Request:

curl http://localhost:8080/get/datastore?key=name

Where datastore is the table name and "name" is the key.

About

A "blazingly fast" database caching implementation built using Go & Redis.


Languages

Language:Go 100.0%