Skip to content

Commit a751742

Browse files
committed
feat: pass through token source cache clear cache method
1 parent c53f3e0 commit a751742

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

livekit/src/room/token_source/cache.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,14 @@ impl<Inner: TokenSourceFixed, Cache: TokenResponseCache<TokenSourceResponse>>
186186
}
187187
}
188188

189+
impl<Type: CacheType, Value: TokenResponseCacheValue, Cache: TokenResponseCache<Value>>
190+
TokenSourceCache<Type, Value, Cache>
191+
{
192+
fn clear_cache(&mut self) {
193+
self.cache.write().clear();
194+
}
195+
}
196+
189197
impl<
190198
Inner: TokenSourceConfigurable,
191199
Cache: TokenResponseCache<(TokenSourceFetchOptions, TokenSourceResponse)>,

0 commit comments

Comments
 (0)