Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache provides in-memory caching with file mod-time invalidation.
func (*Cache) Get ¶
Get retrieves a cached value if the file hasn't been modified since caching. Returns (value, true) on hit, (nil, false) on miss or stale.
func (*Cache) Invalidate ¶
Invalidate removes a specific key from the cache.
func (*Cache) InvalidateAll ¶
func (c *Cache) InvalidateAll()
InvalidateAll clears the entire cache.
type CacheEntry ¶
CacheEntry stores a cached value along with the file mod time used to validate it.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.