memcache

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package memcache provides an implementation of prototransform.Cache that is backed by a memcached instance: https://memcached.org/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) (prototransform.Cache, error)

New creates a new memcached-backed cache with the given configuration.

Types

type Config

type Config struct {
	Client            *memcache.Client
	KeyPrefix         string
	ExpirationSeconds int32
}

Config represents the configuration parameters used to create a new memcached-backed cache.

Jump to

Keyboard shortcuts

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