Files
neosproxy/cache/content/store/cache.go

20 lines
437 B
Go

package store
// CacheStore is a store interface for content cache
type CacheStore interface {
Upsert(item CacheItem) (e error)
Get(hash string) (item CacheItem, e error)
GetAll() (item []CacheItem, e error)
GetEtag(hash string) (etag string, e error)
GetAllEtags() (etags map[string]string)
GetAllCacheDependencies() ([]CacheDependencies, error)
Count() (int, error)
Remove(hash string) (e error)
RemoveAll() (e error)
}