memory_store

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryStore

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

func New

func New() *MemoryStore

func (*MemoryStore) ClearExpired

func (self *MemoryStore) ClearExpired()

func (*MemoryStore) Delete

func (self *MemoryStore) Delete(key string)

func (*MemoryStore) Exists

func (self *MemoryStore) Exists(key string) bool

func (*MemoryStore) Get

func (self *MemoryStore) Get(key string) (map[string]interface{}, error)

func (*MemoryStore) GetExpireTime

func (self *MemoryStore) GetExpireTime(key string) time.Time

func (*MemoryStore) Set

func (self *MemoryStore) Set(key string, data map[string]interface{}, expire time.Duration) error

func (*MemoryStore) SetExpireTime

func (self *MemoryStore) SetExpireTime(key string, duration time.Duration)

Jump to

Keyboard shortcuts

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