Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadThroughCache ¶
type ReadThroughCache struct {
// contains filtered or unexported fields
}
func NewReadThroughCache ¶
func NewReadThroughCache(servers ...string) *ReadThroughCache
func (*ReadThroughCache) Purge ¶
func (c *ReadThroughCache) Purge(keyOrTag string) error
Purge deletes the item with the provided key. The error ErrCacheMiss is returned if the item didn't already exist in the cache.
func (*ReadThroughCache) ReadThrough ¶
func (c *ReadThroughCache) ReadThrough(key string, tags []string, valuePtr interface{}, readFromSource func() (valuePtr interface{}, err error)) error
Click to show internal directories.
Click to hide internal directories.