cache

package
v0.0.0-...-cd4d371 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func Memory

func Memory() *Service

func Redis

func Redis(rds *redis.Service) *Service

func (*Service) Prefix

func (c *Service) Prefix(prefix string) *Service

func (Service) Set

func (setter Service) Set(ctx context.Context, key string, value interface{}, expireIn time.Duration) error

func (Service) SetJSON

func (setter Service) SetJSON(ctx context.Context, key string, value interface{}, expireIn time.Duration) error

func (Service) SetTTL

func (setter Service) SetTTL(ctx context.Context, key string, value interface{}, expireIn time.Duration) error

Jump to

Keyboard shortcuts

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