https://github.com/wintercore/redic
https://github.com/wintercore/redic
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/wintercore/redic
- Owner: WinterCore
- Created: 2024-05-20T17:10:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-07T15:45:45.000Z (over 1 year ago)
- Last Synced: 2025-02-14T20:31:18.746Z (over 1 year ago)
- Language: C
- Size: 96.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redic
Redis server/client implementation in C from scratch with no dependencies
## Running locally
- Make sure you have `make` and any **C** compiler installed on your system.
- Run `git clone git@github.com:WinterCore/redic.git && cd redic`
- To build the project, simply run `make`
- And finally, to run the server `./Redic` (it will run on port 6969 by default)
## Interacting with the server
- You can use any Redis cli or you can just use `redis-cli` which comes bundled with Redis
- Don't forget to specify the port of Redic when running commands, eg: `redis-cli -p 6969 SET foo bar`
### References
- [Redis serialization protocol specification
](https://redis.io/docs/latest/develop/reference/protocol-spec/)
- [C Hashmap Implementation](https://github.com/petewarden/c_hashmap/tree/master)
- [Tsoding's Arena allocator implementation](https://github.com/tsoding/arena)