Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentCache ¶
type ContentCache struct {
// contains filtered or unexported fields
}
func NewContentCache ¶
func NewContentCache(dir string, maxBytes int64) (*ContentCache, error)
func (*ContentCache) Invalidate ¶
func (c *ContentCache) Invalidate(key string)
func (*ContentCache) Size ¶
func (c *ContentCache) Size() int64
type MetadataCache ¶
type MetadataCache struct {
// contains filtered or unexported fields
}
func NewMetadataCache ¶
func NewMetadataCache(ttl time.Duration) *MetadataCache
func (*MetadataCache) Close ¶
func (c *MetadataCache) Close()
func (*MetadataCache) Invalidate ¶
func (c *MetadataCache) Invalidate(key string)
func (*MetadataCache) InvalidatePrefix ¶
func (c *MetadataCache) InvalidatePrefix(prefix string)
func (*MetadataCache) Set ¶
func (c *MetadataCache) Set(key string, data any)
Click to show internal directories.
Click to hide internal directories.