neosproxy/cache/content/store/cache.go
Frederik Löffert ceb8106914 feature/cache dependencies (#5)
* feat: add test for filesystem caching

* content cache dependencies
cms content loader: context with timeout
go builder version 1.13
2019-10-22 11:14:19 +02:00

20 lines
453 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(workspace string) (etags map[string]string)
GetAllCacheDependencies() ([]CacheDependencies, error)
Count() (int, error)
Remove(hash string) (e error)
RemoveAll() (e error)
}