internal

package
v6.4.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2017 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Nil = RedisError("redis: nil")

Variables

View Source
var Logger *log.Logger

Functions

func BytesToString

func BytesToString(b []byte) string

func IsBadConn

func IsBadConn(err error, allowTimeout bool) bool

func IsExecAbortError

func IsExecAbortError(err error) bool

func IsInternalError

func IsInternalError(err error) bool

func IsLoadingError

func IsLoadingError(err error) bool

func IsMovedError

func IsMovedError(err error) (moved bool, ask bool, addr string)

func IsNetworkError

func IsNetworkError(err error) bool

func IsRetryableError

func IsRetryableError(err error) bool

func Logf

func Logf(s string, args ...interface{})

func RetryBackoff

func RetryBackoff(retry int, maxRetryBackoff time.Duration) time.Duration

Retry backoff with jitter sleep to prevent overloaded conditions during intervals https://www.awsarchitectureblog.com/2015/03/backoff.html

func SliceNextElem

func SliceNextElem(v reflect.Value) reflect.Value

func StringToBytes

func StringToBytes(s string) []byte

func ToLower

func ToLower(s string) string

Types

type RedisError

type RedisError string

func (RedisError) Error

func (e RedisError) Error() string

Directories

Path Synopsis
Package consistenthash provides an implementation of a ring hash.
Package consistenthash provides an implementation of a ring hash.

Jump to

Keyboard shortcuts

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