Versions in this module Expand all Collapse all v0 v0.9.12 Feb 18, 2026 Changes in this version + func CacheKey(contributor, resourceType, resourceID string) string + type CacheEntry struct + Data []byte + ExpiresAt time.Time + FetchedAt time.Time + func (e *CacheEntry) Age() time.Duration + func (e *CacheEntry) IsExpired() bool + type FragmentCache struct + func NewFragmentCache(maxSize int, ttl time.Duration) *FragmentCache + func (c *FragmentCache) Clear() + func (c *FragmentCache) Delete(key string) + func (c *FragmentCache) Get(key string) *CacheEntry + func (c *FragmentCache) GetStale(key string) *CacheEntry + func (c *FragmentCache) Set(key string, data []byte) + func (c *FragmentCache) Size() int + type FragmentProxy struct + func NewFragmentProxy(registry *contributor.ContributorRegistry, cacheMaxSize int, ...) *FragmentProxy + func (p *FragmentProxy) Cache() *FragmentCache + func (p *FragmentProxy) FetchPage(ctx context.Context, name, route string) ([]byte, error) + func (p *FragmentProxy) FetchWidget(ctx context.Context, name, widgetID string) ([]byte, error) + func (p *FragmentProxy) InvalidateContributor(name string)