cache

package module
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheObject

type CacheObject interface {
	Get(args string) (string, error)
	Set(key, val string) error
	IsNil(i interface{}) bool
}

type RedisService

type RedisService struct {
	Ctx context.Context
	Cli *redis.Client
	Opt *redis.Options
}

func NewRedis

func NewRedis(opt *redis.Options) (*RedisService, error)

func (*RedisService) Get

func (r *RedisService) Get(key string) (string, error)

func (*RedisService) IsNil

func (r *RedisService) IsNil(e interface{}) bool

func (*RedisService) Set

func (r *RedisService) Set(key, val string) error

Jump to

Keyboard shortcuts

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