Documentation ¶
Index ¶
- func New(options ...Option) leafCache.Memcache
- type Option
- func WithLogger(log leafLogger.Logger) Option
- func WithMaxEntriesInWindow(maxEntriesKey int) Option
- func WithMaxEntriesKey(maxEntriesKey int) Option
- func WithMaxEntrySize(maxEntrySize int) Option
- func WithOnRemove(f func(key string, value interface{})) Option
- func WithOnRemoveWithReason(f func(key string, reason string)) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
Apply(o *option)
}
func WithLogger ¶
func WithLogger(log leafLogger.Logger) Option
func WithMaxEntriesInWindow ¶
func WithMaxEntriesKey ¶
func WithMaxEntrySize ¶
func WithOnRemove ¶
func WithOnRemoveWithReason ¶
Click to show internal directories.
Click to hide internal directories.