redis

package
v0.0.0-...-0eaed87 Latest Latest
Warning

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

Go to latest
Published: Nov 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 Cache

type Cache struct {
}

Cache ...

func New

func New() *Cache

New CacheHandler

func (*Cache) CacheDel

func (handler *Cache) CacheDel(key string) error

CacheDel ...

func (*Cache) CacheDelKey

func (handler *Cache) CacheDelKey(key string) error

CacheDelKey ...

func (*Cache) CacheDeletePattern

func (handler *Cache) CacheDeletePattern(pattern string) error

CacheDeletePattern ...

func (*Cache) CacheGet

func (handler *Cache) CacheGet(key string) ([]byte, error)

CacheGet ...

func (*Cache) CacheGetPattern

func (handler *Cache) CacheGetPattern(pattern string) ([]byte, []string, error)

CacheGetPattern ...

func (*Cache) CacheSet

func (handler *Cache) CacheSet(key string, value []byte, expired string) error

CacheSet .. Expired seconds value

func (*Cache) DO

func (handler *Cache) DO(command string, args ...interface{}) (interface{}, error)

DO ...

func (*Cache) Ping

func (handler *Cache) Ping() (string, error)

Ping ...

type CacheInterface

type CacheInterface interface {
	Ping() (string, error)
	DO(command string, args ...interface{}) (interface{}, error)
	CacheSet(key string, value []byte) (interface{}, error)
	CacheGet(key string) ([]byte, error)
	CacheDel(key string) error
	CacheDelKey(key string) error
	CacheDeletePattern(key string) ([]byte, error)
}

CacheInterface ...

Jump to

Keyboard shortcuts

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