backends

package
v2.0.0-...-bb5fec0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2019 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 RedisBackend

type RedisBackend struct {
	Client    *redis.Client
	QueueName string
}

RedisBackend implements CeleryBackend interface for Redis

func (*RedisBackend) Get

func (b *RedisBackend) Get(id string) ([]byte, error)

Get calls API to get asynchronous result "GET" "celery-task-meta-bbe9bb43-6e6b-4d7e-90f4-b3af5e3eef2f"

func (*RedisBackend) Set

func (b *RedisBackend) Set(id string, result []byte) error

Set pushes result back into backend

Jump to

Keyboard shortcuts

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