cache

package
v0.0.0-...-1624629 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisSimpleCache

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

func (*RedisSimpleCache) Get

func (r *RedisSimpleCache) Get(key string) (string, bool, error)

func (*RedisSimpleCache) Set

func (r *RedisSimpleCache) Set(key, value string, ttl time.Duration) error

type SimpleCache

type SimpleCache interface {
	Set(key, value string, ttl time.Duration) error
	Get(key string) (string, bool, error)
}

Jump to

Keyboard shortcuts

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