leafMemcache

package module
v0.0.0-...-0829b1e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2022 License: MIT Imports: 15 Imported by: 1

README

Memcache

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...Option) leafCache.Memcache

Types

type Option

type Option interface {
	Apply(o *option)
}

func WithLogger

func WithLogger(log leafLogger.Logger) Option

func WithMaxEntriesInWindow

func WithMaxEntriesInWindow(maxEntriesKey int) Option

func WithMaxEntriesKey

func WithMaxEntriesKey(maxEntriesKey int) Option

func WithMaxEntrySize

func WithMaxEntrySize(maxEntrySize int) Option

func WithOnRemove

func WithOnRemove(f func(key string, value interface{})) Option

func WithOnRemoveWithReason

func WithOnRemoveWithReason(f func(key string, reason string)) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL