pub struct ToolRegistryCache { /* private fields */ }Expand description
Tool registry cache for in-memory caching
This struct provides in-memory caching of tool registries to reduce disk I/O and improve performance.
Implementations§
Source§impl ToolRegistryCache
impl ToolRegistryCache
Sourcepub fn get(&self, key: &str) -> Option<ToolRegistry>
pub fn get(&self, key: &str) -> Option<ToolRegistry>
Gets a cached registry
Sourcepub fn set(&self, key: String, registry: ToolRegistry)
pub fn set(&self, key: String, registry: ToolRegistry)
Sets a cached registry
Sourcepub fn cleanup_expired(&self)
pub fn cleanup_expired(&self)
Removes expired entries from the cache
Auto Trait Implementations§
impl !Freeze for ToolRegistryCache
impl RefUnwindSafe for ToolRegistryCache
impl Send for ToolRegistryCache
impl Sync for ToolRegistryCache
impl Unpin for ToolRegistryCache
impl UnwindSafe for ToolRegistryCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more