redis

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 {
	Redisc *redis.Client
}

Store redis store

func NewStore

func NewStore(client *redis.Client) *Store

NewStore new redis store

func (*Store) Delete

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

Delete implement persist.Store interface

func (*Store) Get

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

Get implement persist.Store interface

func (*Store) Set

func (store *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