pub trait Cache:
Send
+ Sync
+ 'static {
// Required methods
fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<CacheGetRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CacheGetResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_many<'life0, 'async_trait>(
&'life0 self,
request: Request<CacheGetManyRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CacheGetManyResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set<'life0, 'async_trait>(
&'life0 self,
request: Request<CacheSetRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_many<'life0, 'async_trait>(
&'life0 self,
request: Request<CacheSetManyRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<CacheDeleteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CacheDeleteResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_many<'life0, 'async_trait>(
&'life0 self,
request: Request<CacheDeleteManyRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CacheDeleteManyResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn touch<'life0, 'async_trait>(
&'life0 self,
request: Request<CacheTouchRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CacheTouchResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with CacheServer.