redis

package
v0.0.0-...-6162916 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const MaxPoolSize = 10 //max number of cache threads waiting in the pool

Variables

View Source
var ErrKeyNotFound = errors.New("key not found or has expired")
View Source
var ErrNoServiceAvailable = errors.New("no service is connected")
View Source
var ErrPingFailed = errors.New("Ping did not Pong")
View Source
var ErrServiceDown = errors.New("service is down")

Functions

This section is empty.

Types

type DB_c

type DB_c struct {
	DB *radix.Pool
	// contains filtered or unexported fields
}

func (*DB_c) ClearKey

func (this *DB_c) ClearKey(msg string, params ...interface{})

func (*DB_c) Flagged

func (this *DB_c) Flagged(key string, exp int) bool

! \brief Handles checking to see if the key exists, and if not sets it

returns true if it's already set, false if it's not set yet

func (*DB_c) GetCache

func (this *DB_c) GetCache(key string, val interface{}) error

! \brief Doesn't make any sense to set things without the ability to get them as well

func (*DB_c) Ping

func (this *DB_c) Ping() error

func (*DB_c) SetCache

func (this *DB_c) SetCache(key string, val interface{}, timeout int) bool

! \brief Sets the cache

Jump to

Keyboard shortcuts

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