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, timeoutMs uint64, servers ...string) BytesCache
func NewReplicatedMemcached ¶ added in v0.2.0
func NewReplicatedMemcached(prefix string, timeout uint64, servers ...string) BytesCache
NewReplicatedMemcached creates a set of identical memcached instances.
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
type ReplicatedMemcached ¶ added in v0.2.0
type ReplicatedMemcached struct {
// contains filtered or unexported fields
}
ReplicatedMemcached represents the caching setup when all the memcached instances are identical. Each read and write refers to all of them.
Click to show internal directories.
Click to hide internal directories.