move statekeyshort_cache to service

This commit is contained in:
Charles Hall 2024-10-08 13:27:02 -07:00
parent 2b2b4169df
commit 190b788683
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
5 changed files with 79 additions and 64 deletions

View file

@ -18,11 +18,12 @@ pub(crate) trait Data: Send + Sync {
state_key: &str,
) -> Result<Option<ShortStateKey>>;
/// The returned bool indicates whether it was created
fn get_or_create_shortstatekey(
&self,
event_type: &StateEventType,
state_key: &str,
) -> Result<ShortStateKey>;
) -> Result<(ShortStateKey, bool)>;
fn get_eventid_from_short(
&self,