memory

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	Cache *cache.Cache
}

Store memory store

func NewStore

func NewStore(c *cache.Cache) *Store

NewStore new memory store

func (*Store) Delete

func (c *Store) Delete(key string) error

Delete implement persist.Store interface

func (*Store) Get

func (c *Store) Get(key string, value interface{}) error

Get implement persist.Store interface

func (*Store) Set

func (c *Store) Set(key string, value interface{}, expire time.Duration) error

Set implement persist.Store interface

Jump to

Keyboard shortcuts

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