https://github.com/neymarsabin/sack
In Memory key-value store.
https://github.com/neymarsabin/sack
database key-value-store memory redis-client sack
Last synced: 3 months ago
JSON representation
In Memory key-value store.
- Host: GitHub
- URL: https://github.com/neymarsabin/sack
- Owner: neymarsabin
- License: mit
- Created: 2023-12-12T07:53:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-12T07:19:17.000Z (over 2 years ago)
- Last Synced: 2025-10-09T00:55:07.184Z (9 months ago)
- Topics: database, key-value-store, memory, redis-client, sack
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.
``` sh
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
```sh
SET name neymar
```
- GET -> get a value when key passed as arguments
```sh
GET name
```
- HSET -> set a key to object value
```sh
HSET users u1 neymar
HSET users u1 sabin
```
*`HSET` does not support nested objects at the moment.*
- HGET -> get value from the objects
```sh
HGET users u1
HGET users u2
```
More commands and optimizations are on the way.