memcacheleaser

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: 8 Imported by: 0

Documentation

Overview

Package memcacheleaser provides an implementation of prototransform.Leaser 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.Leaser, error)

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

Types

type Config

type Config struct {
	Client          *memcache.Client
	KeyPrefix       string
	LeaseTTLSeconds int32
	PollingPeriod   time.Duration
}

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

Jump to

Keyboard shortcuts

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