Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence authored Oct 7, 2023
1 parent 081f480 commit 7334259
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -611,11 +611,11 @@ The cache will be used for the following operations:
- Partial support for querying documents in a collection:
- Filtering;
- Ordering;
- Paging/Cursors;

(Caching other operations may be extended in the future).



The library provides two implementations of the cache:
- In-memory cache, implemented using [moka cache library](https://github.com/moka-rs/moka);
- Persistent cache, implemented using [redb](https://github.com/cberner/redb) and protobuf;
Expand All @@ -635,6 +635,7 @@ Caching supports different init/load modes:
Update cache is done in the following cases:
- When you read a document through a cache by ID and it is not found in the cache, it will be loaded from Firestore and cached;
- Firestore listener will update the cache when it receives a notification about the document change (externally or from your app);
- Using Preloads at the startup time;

### Usage

Expand Down

0 comments on commit 7334259

Please sign in to comment.