Get retrieves cached content
(uri string)
| 216 | |
| 217 | // Get retrieves cached content |
| 218 | func (c *ContentCache) Get(uri string) (*CachedContent, bool) { |
| 219 | c.mu.RLock() |
| 220 | defer c.mu.RUnlock() |
| 221 | |
| 222 | content, exists := c.cache[uri] |
| 223 | return content, exists |
| 224 | } |
| 225 | |
| 226 | // Set stores content in cache with LRU eviction |
| 227 | func (c *ContentCache) Set(uri string, content *CachedContent) { |
no outgoing calls