cache

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringRedisOperator

type StringRedisOperator struct {
	RedisClient *redis.Client
}

func NewStringRedisOperator

func NewStringRedisOperator(redisClient *redis.Client) *StringRedisOperator

func (*StringRedisOperator) Delete

func (operator *StringRedisOperator) Delete(redisKey string) error

func (*StringRedisOperator) Get

func (operator *StringRedisOperator) Get(redisKey string) (string, error)

func (*StringRedisOperator) IsOverLimit

func (operator *StringRedisOperator) IsOverLimit(key string, count uint, ttl int64) bool

func (*StringRedisOperator) MustDelete

func (operator *StringRedisOperator) MustDelete(redisKey string)

func (*StringRedisOperator) MustGet

func (operator *StringRedisOperator) MustGet(redisKey string) string

func (*StringRedisOperator) Set

func (operator *StringRedisOperator) Set(redisKey string, value interface{}, expiration time.Duration) error

Jump to

Keyboard shortcuts

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