2024-04-08 09:01:28 -07:00
|
|
|
use std::sync::Arc;
|
2022-09-06 23:15:09 +02:00
|
|
|
|
2022-09-07 13:25:51 +02:00
|
|
|
use crate::Result;
|
2024-03-05 19:48:54 -05:00
|
|
|
|
2024-04-22 23:48:57 -04:00
|
|
|
pub(crate) trait Data: Send + Sync {
|
2024-04-08 09:01:28 -07:00
|
|
|
fn get_cached_eventid_authchain(&self, shorteventid: &[u64]) -> Result<Option<Arc<[u64]>>>;
|
|
|
|
|
fn cache_auth_chain(&self, shorteventid: Vec<u64>, auth_chain: Arc<[u64]>) -> Result<()>;
|
2022-07-10 17:23:26 +02:00
|
|
|
}
|