Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCacheMiss = errors.New("cache: key is missing")
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type InMemoryCache ¶ added in v0.9.0
type InMemoryCache struct {
// contains filtered or unexported fields
}
func NewInMemoryCache ¶
func NewInMemoryCache(expiration time.Duration) *InMemoryCache
func (*InMemoryCache) Delete ¶ added in v0.11.0
func (i *InMemoryCache) Delete(key string) error
func (*InMemoryCache) Flush ¶ added in v0.9.0
func (i *InMemoryCache) Flush()
func (*InMemoryCache) Get ¶ added in v0.9.0
func (i *InMemoryCache) Get(key string, obj interface{}) error
func (*InMemoryCache) Set ¶ added in v0.9.0
func (i *InMemoryCache) Set(item *Item) error
Click to show internal directories.
Click to hide internal directories.