redis

package
v0.0.0-...-05a0e05 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() (*redis.Client, error)

func ClientByNode

func ClientByNode(int) (*redis.Client, error)

func ClientByURI

func ClientByURI(uri string) (*redis.Client, error)

func FlushDB

func FlushDB(client *redis.Client) error

func MatchKeys

func MatchKeys(client *redis.Client, workerID uint8, timezone uint8, now uint32, limit int) ([]models.Subscriber, error)

func MatchShardHashes

func MatchShardHashes(client *redis.Client, workerID uint8, timezone uint8, now uint32, limit int) ([]models.Subscriber, error)

func StoreKeys

func StoreKeys(client *redis.Client, subscribers []models.Subscriber) (int, error)

func StoreShardHashes

func StoreShardHashes(client *redis.Client, subscribers []models.Subscriber) (int, error)

func Update

func Update(client *redis.Client, subscribers []models.Subscriber, notifyAfter uint32) (int, error)

Types

type FlushHandle

type FlushHandle func(client *redis.Client) error

type MatchHandle

type MatchHandle func(client *redis.Client, workerID uint8, timezone uint8, now uint32, limit int) ([]models.Subscriber, error)

type StoreHandle

type StoreHandle func(client *redis.Client, subscribers []models.Subscriber) (int, error)

Jump to

Keyboard shortcuts

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