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

feat(hybriddb): add the cache layer #37

Merged
merged 5 commits into from Aug 26, 2021
Merged

feat(hybriddb): add the cache layer #37

merged 5 commits into from Aug 26, 2021

Conversation

pretty66
Copy link
Member

Hello, I helped you build a hot data caching layer, "Hybriddb" implements ledisdb storage interface.

Introduction to processing logic:

  • When reading kv data, first check the memory cache, if it is lost, query the disk data and store it in the memory

  • When writing kv data, directly clear the memory cache and wait for the next read data cache to the memory

@gitsrc
Copy link
Member

gitsrc commented Aug 26, 2021

Hello, I helped you build a hot data caching layer, "Hybriddb" implements ledisdb storage interface.

Introduction to processing logic:

  • When reading kv data, first check the memory cache, if it is lost, query the disk data and store it in the memory
  • When writing kv data, directly clear the memory cache and wait for the next read data cache to the memory

Hello, I helped you build a hot data caching layer, "Hybriddb" implements ledisdb storage interface.

Introduction to processing logic:

  • When reading kv data, first check the memory cache, if it is lost, query the disk data and store it in the memory
  • When writing kv data, directly clear the memory cache and wait for the next read data cache to the memory

Very beautiful implementation, it is recommended that the maximum value of the cache can be extracted and included in the program parameters

@gitsrc
Copy link
Member

gitsrc commented Aug 26, 2021

thanks 👍 👍

@gitsrc gitsrc closed this Aug 26, 2021
@gitsrc gitsrc reopened this Aug 26, 2021
@gitsrc gitsrc merged commit 0537a97 into IceFireDB:main Aug 26, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants