cache

package
v0.0.0-...-e371a88 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Init(string) error
	InitWithDefault() error
	ExecuteRawCommand(commandName string, args ...interface{}) (string, error)
}

Client a contract interface for any caching third party client to be used with our system

type RedisClient

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

RedisClient implementation for the cache client interface using redis

func (*RedisClient) ExecuteRawCommand

func (rc *RedisClient) ExecuteRawCommand(commandName string, args ...interface{}) (string, error)

ExecuteRawCommand sends a command string to redis

func (*RedisClient) Init

func (rc *RedisClient) Init(connURL string) error

Init intialize a connection to redis server

func (*RedisClient) InitWithDefault

func (rc *RedisClient) InitWithDefault() error

InitWithDefault intialize a connection to redis server

Jump to

Keyboard shortcuts

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