ttl_hash_set

package
v0.0.0-...-74fbc04 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const WaitBetweenReconnect = 2 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type ReconnectMutex

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

func (*ReconnectMutex) Check

func (r *ReconnectMutex) Check() bool

func (*ReconnectMutex) Update

func (r *ReconnectMutex) Update(state bool)

type TTLHashSet

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

func NewTTLHashSet

func NewTTLHashSet(prefix string, address string, ttlExpiryTime time.Duration) (*TTLHashSet, error)

func (*TTLHashSet) Close

func (t *TTLHashSet) Close() error

func (*TTLHashSet) Exists

func (t *TTLHashSet) Exists(key string) (bool, error)

func (*TTLHashSet) Get

func (t *TTLHashSet) Get(key string) (int, error)

func (*TTLHashSet) Incr

func (t *TTLHashSet) Incr(key string) error

func (*TTLHashSet) Ping

func (t *TTLHashSet) Ping() (string, error)

Sends a PING to the underlying Redis service. This can be used to healthcheck any Redis servers we're connected to.

func (*TTLHashSet) Reconnect

func (t *TTLHashSet) Reconnect()

Reconnect asynchronously initiates a new connection to the server if there's not already one in progress. Other operations will continue to return errors until this has succeeded.

func (*TTLHashSet) Set

func (t *TTLHashSet) Set(key string, val int) error

func (*TTLHashSet) TTL

func (t *TTLHashSet) TTL(key string) (int, error)

Jump to

Keyboard shortcuts

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