sack

command module
v1.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 12 Imported by: 0

README

sack

An in-memory key/value store that can be used with clients that supports redis. This is not a production ready application but more like redis. This is me doing some heavy stuffs in Golang :)

Installation Instructions

New released version is pushed to dockerhub with tags. Just pull that image from dockerhub and run the container.

docker pull neymarsabin/sack:latest
docker run -p 6379:6379 neymarsabin/sack:latest

The port exposed is 6379, so make sure you have the redis server stopped. You can use the redis-cli to connect to sackDB server.

Supported Commands

Only basic commands supported at the moment.

  • SET -> set a key and value
SET name neymar
  • GET -> get a value when key passed as arguments
GET name 
  • HSET -> set a key to object value
HSET users u1 neymar
HSET users u1 sabin

HSET does not support nested objects at the moment.

  • HGET -> get value from the objects
HGET users u1
HGET users u2

More commands and optimizations are on the way.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL