redisx

package
v0.0.0-...-66fcd57 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 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 IRedis

type IRedis interface {
	Subscribe(channel string) *redis.PubSub
	Publish(data []byte, channel string) error
	Set(key string, value interface{}, ex time.Duration)
	Get(key string) string
	Del(key string) int64
	GetInt64(key string) (int64, error)
	GetInt(key string) (int, error)
	SetInt(key string, value int64, expiration time.Duration) error
	IncrInt(key string, value int64) (int64, error)
	DecrInt(key string, value int64) (int64, error)
	GetFloat(key string) (float64, error)
	IncrFloat(key string, value float64) (float64, error)
	SetFloat(key string, value float64, expiration time.Duration) error
	GetObject(key string, v interface{}) error
	SetObject(key string, value interface{}, expiration time.Duration) error
	Incr(key string, value interface{}) (interface{}, error)
	SetEx(key string, t time.Duration)
	Exists(key string) (bool, error)
	UserSign(userID string) error
	ZRange(key string) []string
	ZAdd(key string, data interface{}) error
	SetNX(key string, value interface{}, expiration time.Duration) error
	Scan(key string, count int64) []string
	GetTTL(key string) float64
	Enqueue(key string, item interface{}) error
	Dequeue(key string, item interface{}) error
	Peek(key string, item interface{}) error
	Length(key string) (int64, error)
	Clear(key string) error
	EnqueueWithTTL(key string, item interface{}, ttl time.Duration) error
}

Jump to

Keyboard shortcuts

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