storage

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(rdc *redis.Client, opts ...store.Option) store.Store

Types

type Redis added in v0.0.3

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

func (*Redis) Clear added in v0.0.7

func (e *Redis) Clear(key string) error

redis里面,有序集合新增,即可实现update

func (*Redis) FetchJob added in v0.0.3

func (e *Redis) FetchJob(step int64) ([]string, error)

func (*Redis) Pop added in v0.0.3

func (e *Redis) Pop(t *task.Task) error

func (*Redis) Push added in v0.0.3

func (e *Redis) Push(t *task.Task) error

添加任务

func (*Redis) ReadTask added in v0.0.3

func (e *Redis) ReadTask(key string) (*task.Task, error)

func (*Redis) Update added in v0.0.3

func (e *Redis) Update(t *task.Task) error

redis里面,有序集合新增,即可实现update

type RedisConfig

type RedisConfig struct {
}

预留redis的配置

Jump to

Keyboard shortcuts

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