redisqueue

package
v0.0.0-...-b3e7a1a Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Error = errors.NewClass("redisqueue")
)

Functions

This section is empty.

Types

type RedisQueue

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

func New

func New(client *redis.Client, key string) *RedisQueue

func (*RedisQueue) Clear

func (q *RedisQueue) Clear() error

func (*RedisQueue) DequeueN

func (q *RedisQueue) DequeueN(n int) (taken [][]byte, num_left int, err error)

func (*RedisQueue) Enqueue

func (q *RedisQueue) Enqueue(datum []byte) (pos int, err error)

func (*RedisQueue) Iter

func (q *RedisQueue) Iter(fn func(int, []byte) bool) error

func (*RedisQueue) Position

func (q *RedisQueue) Position(datum []byte) (pos int, err error)

func (*RedisQueue) Remove

func (q *RedisQueue) Remove(datum []byte) error

func (*RedisQueue) Size

func (q *RedisQueue) Size() (int, error)

Jump to

Keyboard shortcuts

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