redisdb

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClientInterface

type RedisClientInterface interface {
	GetClient() *redis.Client
	ReadData(ctx context.Context, key string) (data []byte, err error)
	SaveData(ctx context.Context, key string, data []byte, timer time.Duration) (ok bool)
	SaveHSetData(ctx context.Context, key, field string, value interface{}) (ok bool)
	ReadHSetData(ctx context.Context, key string) (data map[string]string, err error)
	DeleteAllHSetData(ctx context.Context, key string) (ok bool)
	Publish(ctx context.Context, message []byte) error
	Subscriber(ctx context.Context, callback func(msg *redis.Message))
}

func New added in v0.1.1

Jump to

Keyboard shortcuts

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