RefreshCallback

Trait RefreshCallback 

Source
pub trait RefreshCallback: Send + Sync {
    // Required method
    fn refresh(&self, key: String, metadata: RefreshMetadata) -> RefreshFuture;
}
Expand description

Callback trait for triggering refresh operations.

This trait is implemented by the cache layer to actually perform the refresh.

Required Methods§

Source

fn refresh(&self, key: String, metadata: RefreshMetadata) -> RefreshFuture

Triggers a refresh for the given key and metadata.

Implementors§