Awesome
<img alt="Redka" src="logo.svg" height="80" align="center">Redka aims to reimplement the core parts of Redis with SQLite, while remaining compatible with Redis API.
Notable features:
- Data does not have to fit in RAM.
- ACID transactions.
- SQL views for better introspection and reporting.
- Both in-process (Go API) and standalone (RESP) servers.
- Redis-compatible commands and wire protocol.
Redka is functionally ready for 1.0. Feel free to try it in non-critical production scenarios and provide feedback in the issues.
Commands
Redka supports five core Redis data types:
- Strings are the most basic Redis type, representing a sequence of bytes.
- Lists are sequences of strings sorted by insertion order.
- Sets are unordered collections of unique strings.
- Hashes are field-value (hash)maps.
- Sorted sets (zsets) are collections of unique strings ordered by each string's associated score.
Redka also provides commands for key management, server/connection management, and transactions.
Installation and usage
Redka comes in two flavors:
- Standalone Redis-compatible server: installation, usage.
- Go module for in-process use: installation, usage.
Performance
According to the benchmarks, Redka is several times slower than Redis. Still, it can do up to 100K op/sec on a Macbook Air, which is pretty good if you ask me (and probably 10x more than most applications will ever need).
Redka stores data in a SQLite database with a simple schema and provides views for better introspection.
Contributing
Contributions are welcome. For anything other than bugfixes, please first open an issue to discuss what you want to change.
Be sure to add or update tests as appropriate.
Acknowledgements
Redka would not be possible without these great projects and their creators:
- Redis (Salvatore Sanfilippo). It's such an amazing idea to go beyond the get-set paradigm and provide a convenient API for more complex data structures.
- SQLite (D. Richard Hipp). The in-process database powering the world.
- Redcon (Josh Baker). A very clean and convenient implementation of a RESP server.
Logo font by Ek Type.
Support
Redka is mostly a one-man project, not backed by a VC fund or anything.
If you find Redka useful, please star it on GitHub and spread the word among your peers. It really helps to move the project forward.
★ Subscribe to stay on top of new features.