Skip to content

feat: add FileStore implementation for cache (#427)#443

Open
achsanalfitra wants to merge 15 commits into
cot-rs:masterfrom
achsanalfitra:cache/store/file
Open

feat: add FileStore implementation for cache (#427)#443
achsanalfitra wants to merge 15 commits into
cot-rs:masterfrom
achsanalfitra:cache/store/file

Conversation

@achsanalfitra
Copy link
Copy Markdown

Pull Request to Issue #427

Key info:

  • CAS-based registry
  • Hashed using md-5 (which is already an existing dependency from sqlx)
  • Eviction on get and contains key (similar to memory cache)

Note:

  • Uses DateTime to parse serialized expiry into Timeout (this can be improved by implementing From in Timeout)
  • No retry policy implemented
  • No entry cap implemented

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ci Area: CI (Continuous Integration) A-deps Area: Dependencies C-cli Crate: cot-cli (issues and Pull Requests related to Cot CLI) C-lib Crate: cot (main library crate) C-macros Crate: cot-macros

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for File cache store

4 participants