Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func NewPersistentCache ¶
func (*Cache) Get ¶
func (cache *Cache) Get(key string, fallback func() (CacheValue, error)) (CacheValue, GetResult)
func (*Cache) Set ¶
func (cache *Cache) Set(key string, value CacheValue)
type CacheValue ¶
type CacheValue interface { IsEqual(CacheValue) bool ShouldRefresh() bool IsValid() bool }
Click to show internal directories.
Click to hide internal directories.