An open API service indexing awesome lists of open source software.

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

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;
}
```