Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cache] Add a caching layer #7

Open
ndragazis opened this issue Jun 30, 2024 · 0 comments
Open

[cache] Add a caching layer #7

ndragazis opened this issue Jun 30, 2024 · 0 comments

Comments

@ndragazis
Copy link
Owner

The current design of the storage engine is based on Memtables and SSTables (see #4). Memtables are in-memory ordered maps implemented as std::map objects from the C++ standard library.

Opening this issue to add a caching layer on top. The cache will be an LRU write-through cache implemented over an std::unordered_map. The cache will be storing data that were recently read or written.

Since the cache trades memory with speed, the size of the cache shall be configurable by the user. The user shall also have the option to disable it.

Related content:

@ndragazis ndragazis mentioned this issue Jun 30, 2024
ndragazis added a commit that referenced this issue Jun 30, 2024
Add a caching layer to speed up reads over recently used data.

Refs #7.

Signed-off-by: Nikos Dragazis <dragazisn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant