mirror of
https://github.com/foomo/neosproxy.git
synced 2026-12-03 10:11:51 +00:00
20 lines
437 B
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)
|
|
}
|