pub struct WorkspaceCacheManager { /* private fields */ }Expand description
Workspace indexing and refactoring orchestration. Cache manager for workspace index components.
Manages bounded LRU caches for AST nodes, symbols, and workspace data.
Implementations§
Source§impl WorkspaceCacheManager
impl WorkspaceCacheManager
Sourcepub fn new(config: &CombinedWorkspaceCacheConfig) -> WorkspaceCacheManager
pub fn new(config: &CombinedWorkspaceCacheConfig) -> WorkspaceCacheManager
Sourcepub fn peek_ast(&self, key: &str) -> Option<Vec<u8>>
pub fn peek_ast(&self, key: &str) -> Option<Vec<u8>>
Peek AST node from cache without changing hit/miss counters.
Sourcepub fn insert_ast(&self, key: String, value: Vec<u8>)
pub fn insert_ast(&self, key: String, value: Vec<u8>)
Insert AST node into cache.
Sourcepub fn insert_symbol(&self, key: String, value: Vec<u8>)
pub fn insert_symbol(&self, key: String, value: Vec<u8>)
Insert symbol into cache.
Sourcepub fn insert_workspace(&self, key: String, value: Vec<u8>)
pub fn insert_workspace(&self, key: String, value: Vec<u8>)
Insert workspace data into cache.
Sourcepub fn stats(&self) -> HashMap<String, CacheStats>
pub fn stats(&self) -> HashMap<String, CacheStats>
Get combined cache statistics.
Sourcepub fn total_memory_usage(&self) -> usize
pub fn total_memory_usage(&self) -> usize
Get total memory usage across all caches.
Auto Trait Implementations§
impl Freeze for WorkspaceCacheManager
impl !RefUnwindSafe for WorkspaceCacheManager
impl Send for WorkspaceCacheManager
impl Sync for WorkspaceCacheManager
impl Unpin for WorkspaceCacheManager
impl UnsafeUnpin for WorkspaceCacheManager
impl !UnwindSafe for WorkspaceCacheManager
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