mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 11:05:32 -04:00
ffi-crypto-bindings: Improve comments
This commit is contained in:
@@ -1537,6 +1537,11 @@ impl OlmMachine {
|
||||
|
||||
/// Clear any in-memory caches because they may be out of sync with the
|
||||
/// underlying data store.
|
||||
///
|
||||
/// The crypto store layer is caching olm sessions for a given device.
|
||||
/// When used in a multi-process context this cache will get outdated.
|
||||
/// If the machine is used by another process, the cache must be invalidating when the
|
||||
/// main process is resumed.
|
||||
pub async fn clear_crypto_cache(&self) {
|
||||
self.runtime.block_on(self.inner.clear_crypto_cache())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user