[−][src]Crate futures_cache
Futures-aware cache abstraction
Provides a cache for asynchronous operations that persist data on the filesystem using sled.
The async cache works by accepting a future, but will cancel the accepted future in case the answer is already in the cache.
It requires unique cache keys that are serde serializable. To distinguish across different
sub-components of the cache, they can be namespaces using namespaced.
Re-exports
pub use sled; |
Structs
| Cache | Primary cache abstraction. |
| Duration | ISO 8601 time duration with nanosecond precision. This also allows for the negative duration; see individual methods for details. |
| JsonEntry | Entry which have had its type erased into a JSON representation for convenience. |
| StoredEntry | A complete stored entry with a type. |
| StoredEntryRef | A reference to a complete stored entry with a type. |
Enums
| Error | Error type for the cache. |
| State | Represents the state of an entry. |