Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cacher ¶
type Cacher interface {
// Get must return a pointer to the item, a boolean representing whether
// item is present or not, and an error (must be nil when key is not
// present).
Get(key string) (*Item, bool, error)
// Set sets the item into cache with the given TTL.
Set(key string, item *Item, ttl time.Duration) error
}
Cacher represents a backend cache that can be used by sqlcache package.
Click to show internal directories.
Click to hide internal directories.