store

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMemoryStore

func NewInMemoryStore(ctx context.Context, prefix string) (*inMemoryStore, error)

NewInMemoryStore on memcached

func NewMemcacheStore

func NewMemcacheStore(ctx context.Context, cfg CacheStoreConfig) (*memcacheStore, error)

NewMemcacheStore on memcached

Types

type CacheStoreConfig added in v0.0.2

type CacheStoreConfig struct {
	Host               string
	Port               int
	MaxIdleConnections int
	ReadWriteTimeOut   int
	Prefix             string
}

CacheStoreConfig is a struct for store configuration variables

Jump to

Keyboard shortcuts

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