store

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterRedis

func RegisterRedis(addr, password string, db, PoolSize int)

Types

type RedisStore

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

func NewRedis

func NewRedis(addr, password string, db, PoolSize int) *RedisStore

func (*RedisStore) FmtKey

func (s *RedisStore) FmtKey(Sid, key string) string

func (*RedisStore) Get

func (s *RedisStore) Get(Sid, key string) (interface{}, error)

func (*RedisStore) Remove

func (s *RedisStore) Remove(Sid, key string) error

func (*RedisStore) Set

func (s *RedisStore) Set(Sid, key string, value interface{}, d int) error

Jump to

Keyboard shortcuts

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