redis

package
v0.0.0-...-76bf06a Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(client *redis.Client) (autocert.Cache, error)

NewCache returns new Cache instance

Types

type Cache

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

Cache type for Redis cache implementation

func (*Cache) Delete

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

Delete delete data by key from Redis

func (*Cache) Get

func (c *Cache) Get(ctx context.Context, key string) ([]byte, error)

Get retrieves data by key from Redis

func (*Cache) Put

func (c *Cache) Put(ctx context.Context, key string, data []byte) error

Put stores data with key to Redis

Jump to

Keyboard shortcuts

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