[−][src]Crate futures_cache
Futures-aware cache abstraction
Provides a cache for asynchronous operations that persist data on the filesystem using RocksDB.
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
.
Structs
Cache | Primary cache abstraction. |
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. |