memory

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEncoding

func NewEncoding() cache.Provider

NewEncoding create new provider.

func NewMap

func NewMap() cache.Provider

NewMap creates new map cache.

func NewMapShard added in v0.2.0

func NewMapShard(opts ...Option) cache.Provider

Types

type Option

type Option func(*settings)

func WithHashKey added in v0.2.0

func WithHashKey(f func(in cache.Key) uint64) Option

func WithNumShards added in v0.2.0

func WithNumShards(num uint64) Option

Jump to

Keyboard shortcuts

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