https://github.com/redislabs/eredis
Embedded Redis experiment
https://github.com/redislabs/eredis
Last synced: about 1 year ago
JSON representation
Embedded Redis experiment
- Host: GitHub
- URL: https://github.com/redislabs/eredis
- Owner: RedisLabs
- License: other
- Created: 2018-06-20T18:10:11.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-19T11:48:50.000Z (almost 8 years ago)
- Last Synced: 2025-04-06T16:54:21.745Z (about 1 year ago)
- Language: C
- Size: 13.7 KB
- Stars: 10
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Embedded Redis
This is a **toy attempt** to strip down a Redis server, load it as a shared object
and directly inject and execute commands bypassing all networking, etc.
## Building Embedded Library and C test
1. Make sure you `clone --recursive` to get submodules.
2. Run `make` to build the embedded Redis library and the sample C test.
3. Run `make tests` to run basic sanity tests on the C client.
## Go interface
The `eredis` dir contains a go package that wraps the C interface. To run a sample
test, use:
```
LD_LIBRARY_PATH=`pwd`/redis/src go test ./golang/eredis -v
```
Or just run:
```
make go-tests
```