https://github.com/a2p1k02/lodis
implementation of Redis
https://github.com/a2p1k02/lodis
cli cpp cpp20 redis
Last synced: 2 months ago
JSON representation
implementation of Redis
- Host: GitHub
- URL: https://github.com/a2p1k02/lodis
- Owner: a2p1k02
- Created: 2025-04-21T07:32:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-21T04:25:01.000Z (about 1 year ago)
- Last Synced: 2025-06-19T19:44:22.231Z (about 1 year ago)
- Topics: cli, cpp, cpp20, redis
- Language: C++
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LODIS
LODIS - local dictionary server. This is my implementation of Redis.
This is just my way to write some code in C++
## Example
```c++
#include
#include "lodis/in_memory_db.h"
int main() {
InMemoryDB db;
db.set("mykey", "myvalue");
std::cout << "Value: " << db.get("mykey") << std::endl;
db.get("mykey");
db.del("mykey");
std::cout << "Value after delete: " << db.get("mykey") << std::endl;
db.get("mykey");
return 0;
}
```