pub trait RemoteCacheBackend: Send + Sync {
// Required methods
fn upload_artifact<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 CacheKey,
artifact: &'life2 Artifact,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn fetch_artifact<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 CacheKey,
) -> Pin<Box<dyn Future<Output = Result<Option<Artifact>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn has_artifact<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 CacheKey,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait for remote cache backends.
Backends are responsible for storing and retrieving artifacts. All operations are async and should support streaming for large artifacts.