memstore

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) captchas.Store

New returns a memory store.

Types

type Option added in v0.2.0

type Option func(*store)

Option is a function that receives a pointer of store.

func Expiration added in v0.2.0

func Expiration(expiration time.Duration) Option

Expiration sets expiration.

func GCInterval added in v0.2.0

func GCInterval(interval time.Duration) Option

GCInterval sets garbage collection .

Jump to

Keyboard shortcuts

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