moka/
sync_base.rs

1pub(crate) mod iter;
2
3#[cfg(feature = "sync")]
4pub(crate) mod base_cache;
5
6#[cfg(feature = "sync")]
7mod invalidator;
8
9#[cfg(feature = "sync")]
10mod key_lock;
11
12/// The type of the unique ID to identify a predicate used by
13/// [`Cache::invalidate_entries_if`][invalidate-if] method.
14///
15/// A `PredicateId` is a `String` of UUID (version 4).
16///
17/// [invalidate-if]: ./struct.Cache.html#method.invalidate_entries_if
18#[cfg(feature = "sync")]
19pub type PredicateId = String;
20
21#[cfg(feature = "sync")]
22pub(crate) type PredicateIdStr<'a> = &'a str;