redis

package module
v0.0.0-...-3ad59aa Latest Latest
Warning

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

Go to latest
Published: Feb 8, 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 {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(marshaler marshaler.Marshaler, currentRedisClient currentRedisClient, option *gocache.Option) *Cache

func (*Cache) Clear

func (s *Cache) Clear(ctx context.Context) error

func (*Cache) Delete

func (s *Cache) Delete(ctx context.Context, key string) error

func (*Cache) Get

func (s *Cache) Get(ctx context.Context, key string) (interface{}, error, func(interface{}) error)

func (*Cache) Set

func (s *Cache) Set(ctx context.Context, key string, value interface{}, option *gocache.Option) error

Jump to

Keyboard shortcuts

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