redisPeerStoreImpl

package
v0.0.0-...-640c710 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisStore

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

RedisStore represents the implementation of a `PeerStore` object.

func (*RedisStore) CreateNewTorrentKey

func (p *RedisStore) CreateNewTorrentKey(infoHash string)

CreateNewTorrentKey wraps around the specific `CreateNewTorrentKey` function

func (*RedisStore) GetAllPeers

func (p *RedisStore) GetAllPeers(key string) []string

GetAllPeers wraps around the specific `GetAllPeers` function

func (*RedisStore) GetKeyVal

func (p *RedisStore) GetKeyVal(key string) []string

GetKeyVal wraps around the specific `GetKeyVal` function

func (*RedisStore) KeyExists

func (p *RedisStore) KeyExists(key string) (retval bool)

KeyExists wraps around the specific `GetBoolKeyVal` function

func (*RedisStore) RemoveKV

func (p *RedisStore) RemoveKV(key, value string)

RemoveKV wraps around the specific `RemoveKeysValue` function

func (*RedisStore) SetIPMember

func (p *RedisStore) SetIPMember(infoHash, ipPort string) (retval int)

SetIPMember wraps around the specific `SetIPMember` function

func (*RedisStore) SetKV

func (p *RedisStore) SetKV(key, value string)

SetKV wraps around the generic `SetKeyVal` function

func (*RedisStore) SetKeyIfNotExists

func (p *RedisStore) SetKeyIfNotExists(key, value string) (retval bool)

SetKeyIfNotExists wraps around the generic RedisSetKeyIfNotExists function

Jump to

Keyboard shortcuts

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