mirror of
https://github.com/foomo/neosproxy.git
synced 2025-10-16 12:35:39 +00:00
* feat: add test for filesystem caching * content cache dependencies cms content loader: context with timeout go builder version 1.13
20 lines
453 B
Go
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)
|
|
}
|