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

refactor!(crypto): Move some caches out of the CryptoStore implementations #1395

Merged
merged 4 commits into from Jan 24, 2023

Conversation

poljar
Copy link
Contributor

@poljar poljar commented Jan 24, 2023

This moves the caches we have for tracked users out of the Sled, and IndexedDB, CryptoStore into the Store struct. The Store struct is a wrapper for the CryptoStore trait, so this is the natural place where these caches should live.

…tions

This moves the caches we have for tracked users out of the Sled, and
IndexedDB, CryptoStore into the Store struct. The Store struct is a
wrapper for the CryptoStore trait, so this is the natural place where
these caches should live.
crates/matrix-sdk-crypto/src/identities/manager.rs Outdated Show resolved Hide resolved
crates/matrix-sdk-crypto/src/store/mod.rs Outdated Show resolved Hide resolved
crates/matrix-sdk-crypto/src/store/mod.rs Outdated Show resolved Hide resolved
crates/matrix-sdk-crypto/src/store/mod.rs Outdated Show resolved Hide resolved
crates/matrix-sdk-indexeddb/src/crypto_store.rs Outdated Show resolved Hide resolved
poljar and others added 2 commits January 24, 2023 13:56
@poljar poljar requested a review from jplatte January 24, 2023 13:15
crates/matrix-sdk-crypto/src/store/mod.rs Outdated Show resolved Hide resolved
Co-authored-by: Jonas Platte <jplatte@matrix.org>
@poljar poljar enabled auto-merge (squash) January 24, 2023 15:03
@poljar poljar merged commit 18ec101 into main Jan 24, 2023
@poljar poljar deleted the poljar/move-caches-out-of-stores branch January 24, 2023 15:26
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