cache

package module
v0.0.0-...-34820f6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 3 Imported by: 0

README

Go Cache

GoCache is a package to manage Cache stored data, can be both local file or integrating with the most popular Cache backends Redis, Memcached, DynamoDB, and NoSQL DBs.

Community

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisClient *redis.Client

Functions

func SetConfig

func SetConfig(conns ...interface{})

Types

type Cache

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

func Store

func Store(t interface{}) (Cache, error)

Choose a store type(file, redis, memcached, dynamodb, etc.)

func (Cache) Delete

func (c Cache) Delete(key string) error

func (Cache) Get

func (c Cache) Get(key string) (string, error)

func (Cache) Has

func (c Cache) Has(key string) (bool, error)

func (Cache) Pull

func (c Cache) Pull(key string) (string, error)

func (Cache) Put

func (c Cache) Put(key, value string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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