redisstore

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client *redis.Client, opts ...Option) captchas.Store

New returns a redis store.

Types

type Option

type Option func(s *store)

Option is a function that receives a pointer of redis store.

func Expiration added in v0.2.0

func Expiration(expiration time.Duration) Option

Expiration sets the expiration.

func Prefix

func Prefix(prefix string) Option

Prefix sets the prefix of key.

Jump to

Keyboard shortcuts

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