[−][src]Trait async_graphql::dataloader::CacheStorage
This is supported on crate feature
dataloader
only.Cache storage for a loader.
Associated Types
type Key: Send + Hash + Eq + Clone + 'static
[src]
Type of key.
type Value: Send + Clone + 'static
[src]
Type of value.
Required methods
pub fn get(&self, key: &Self::Key) -> Option<Self::Value>
[src]
Load value
from cache by key
.
pub fn set(&self, key: Self::Key, value: Self::Value)
[src]
Put value
to cache by key
.