Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheIndex ¶
type CacheIndex struct {
// contains filtered or unexported fields
}
func (*CacheIndex) IsCached ¶
func (s *CacheIndex) IsCached(ctx context.Context, resourceID, path string) ([]models.CacheIndexResult, error)
IsCached returns a list of backend types and their last seen times for a given resource and path
func (*CacheIndex) MarkAsCached ¶
func (s *CacheIndex) MarkAsCached(ctx context.Context, backendType models.StreamingBackendType, path, resourceID string) error
MarkAsCached updates the last_seen_at for a cache entry via LazyMap
func (*CacheIndex) RunCleanup ¶
func (s *CacheIndex) RunCleanup(ctx context.Context)
RunCleanup removes old cache entries from the database
Click to show internal directories.
Click to hide internal directories.