_redis

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisPS

type RedisPS struct {
	RedisUrl helpers.FlagHelper

	RedisPrefix helpers.FlagHelper
	// contains filtered or unexported fields
}

func NewRedisPS

func NewRedisPS() *RedisPS

func (*RedisPS) EnablePrefixFlag

func (this *RedisPS) EnablePrefixFlag() *RedisPS

func (*RedisPS) GetInstance

func (this *RedisPS) GetInstance() *redis.Client

func (*RedisPS) GetPrefix

func (this *RedisPS) GetPrefix() string

func (*RedisPS) HandleCommand

func (this *RedisPS) HandleCommand(cmd *cli.Command) error

func (*RedisPS) HandleContext

func (this *RedisPS) HandleContext(cCtx *cli.Context) error

func (*RedisPS) ModifyOptions

func (this *RedisPS) ModifyOptions(fn func(opts *redis.Options) *redis.Options)

func (*RedisPS) SetCategory

func (this *RedisPS) SetCategory(category string) *RedisPS

func (*RedisPS) SetPrefix

func (this *RedisPS) SetPrefix(prefix string) *RedisPS

Jump to

Keyboard shortcuts

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