memoryStore

package
v2.1.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryStore added in v2.1.5

type MemoryStore struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

memoryStore is an internal store for captcha ids and their values.

func New

func New(maxCount int, expiration time.Duration) (Mem *MemoryStore)

func (*MemoryStore) Del added in v2.1.5

func (s *MemoryStore) Del(id string) bool

func (*MemoryStore) Get added in v2.1.5

func (s *MemoryStore) Get(id string, clear bool) (value interface{}, err error)

func (*MemoryStore) GetString added in v2.1.5

func (s *MemoryStore) GetString(id string) (value string, err error)

func (*MemoryStore) GetUint added in v2.1.5

func (s *MemoryStore) GetUint(id string) (value uint, err error)

func (*MemoryStore) Set added in v2.1.5

func (s *MemoryStore) Set(id string, value interface{})

Jump to

Keyboard shortcuts

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