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

https://github.com/raisess/escale

Another ("key", "value") cache storage lib :)
https://github.com/raisess/escale

cache cache-storage cachemanager cpp11 lightweight

Last synced: 9 months ago
JSON representation

Another ("key", "value") cache storage lib :)

Awesome Lists containing this project

README

          

# ESCALE

- A small lib for ("key", "value") cache.

## Usage

```cpp
#include
#include "Cache.h"

int main() {
Cache* cache = new Cache();

cache->set("Key", "Value");
std::cout << cache->get("Key") << std::endl; // Value

return 0;
}
```

- Using a single instance

```cpp
#include
#include "Cache.h"

int main() {
Cache* cache_one = Cache::SingleInstance();

cache_one->set("Key", "Value");
std::cout << cache_one->get("Key") << std::endl; // Value

Cache* cache_two = Cache::SingleInstance();

std::cout << cache_two->get("Key") << std::endl; // Value

return 0;
}
```

Keep it simple, feel free to contribute. Have a nice day! :)