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: Wrap content to support cache #170

Merged
merged 2 commits into from
Aug 22, 2023

Commits on Aug 22, 2023

  1. feat: wrap content to support remote cache

    We can use  LRU in content store  and wrap some methods to provides  remote cache. Here Info, Update, ReaderAt, Walk methods were wraped and they can get, update, and do other operations in LRU cache.
    Also, we can configure whether to enable cache or not with cache_tag_suffix.And we can config cache size.
    
    Signed-off-by: breezeTuT <y_q_email@163.com>
    PerseidMeteor committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    9542345 View commit details
    Browse the repository at this point in the history
  2. feat: convert with remote cache

    Here we can pull remote cache, use remote cache for conversion, and push the updated cache back to the remote. When updating, we follow a upper->lower order.
    
    Signed-off-by: breezeTuT <y_q_email@163.com>
    PerseidMeteor committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    f808592 View commit details
    Browse the repository at this point in the history