cache

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 1 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 interface {
	Set(key, value string) bool
	Get(key string) interface{}
}

type CacheFactory

type CacheFactory struct {
}

func (*CacheFactory) Create

func (factory *CacheFactory) Create(cacheType CacheType) (Cache, error)

type CacheType

type CacheType int

type MemCache

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

func (*MemCache) Get

func (mem *MemCache) Get(key string) interface{}

func (*MemCache) Set

func (mem *MemCache) Set(key, value string) bool

type RedisCache

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

func (*RedisCache) Get

func (redis *RedisCache) Get(key string) interface{}

func (*RedisCache) Set

func (redis *RedisCache) Set(key, value string) bool

Directories

Path Synopsis
Package redis implements a Redis client.
Package redis implements a Redis client.

Jump to

Keyboard shortcuts

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