gredis

package
v0.0.0-...-9d33de4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 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 RedisDao

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

func NewRedis

func NewRedis() (*RedisDao, func(), error)

redis依赖注入

func (*RedisDao) Delete

func (r *RedisDao) Delete(key string) (bool, error)

Delete delete a kye

func (*RedisDao) Exists

func (r *RedisDao) Exists(key string) bool

Exists check a key

func (*RedisDao) Get

func (r *RedisDao) Get(key string) ([]byte, error)

Get get a key

func (*RedisDao) LikeDeletes

func (r *RedisDao) LikeDeletes(key string) error

LikeDeletes batch delete

func (*RedisDao) Set

func (r *RedisDao) Set(key string, data interface{}, time int) error

Set a key/value

Jump to

Keyboard shortcuts

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