lru

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package lru is a simple inmemory Recorder implementation. This implementation is intended for simple usecases (local dev) and not production workloads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mem

type Mem struct {
	// contains filtered or unexported fields
}

Mem represents an in-memory LRU

func New

func New() *Mem

New returns an in-memory LRU instance

func (*Mem) SeenBefore

func (m *Mem) SeenBefore(key string) bool

SeenBefore sets a HTTP response code as an error for previously seen idempotency keys.

Jump to

Keyboard shortcuts

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