Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTimeout = errors.New("cache: timeout") ErrNotFound = errors.New("cache: not found") )
Functions ¶
This section is empty.
Types ¶
type BytesCache ¶
func NewExpireCache ¶
func NewExpireCache(maxsize uint64) BytesCache
func NewMemcached ¶
func NewMemcached(prefix string, servers ...string) BytesCache
type ExpireCache ¶
type ExpireCache struct {
// contains filtered or unexported fields
}
func (ExpireCache) Items ¶
func (ec ExpireCache) Items() int
func (ExpireCache) Size ¶
func (ec ExpireCache) Size() uint64
type MemcachedCache ¶
type MemcachedCache struct {
// contains filtered or unexported fields
}
func (*MemcachedCache) Timeouts ¶
func (m *MemcachedCache) Timeouts() uint64
Click to show internal directories.
Click to hide internal directories.