Skip to content

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

Notifications You must be signed in to change notification settings

datalinkhq/quickie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Languages