redis

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

* @Date: 2023-07-20 09:48:51 * @LastEditTime: 2023-07-20 09:48:52 * @Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New(conf *redis.Options) *Store

New @param conf @date 2022-07-02 08:12:14

func NewWithDb

func NewWithDb(tx *redis.Client) *Store

NewWithDb @param tx @date 2022-07-02 08:12:12

func (*Store) Get

func (r *Store) Get(ctx context.Context, key string) ([]byte, error)

Get @param ctx @param key @date 2022-07-02 08:12:09

func (*Store) MemberTagKey

func (r *Store) MemberTagKey(ctx context.Context, tag, key string) (bool, error)

MemberTagKey @param ctx @param tag @param key @date 2022-07-02 08:12:05

func (*Store) RemoveFromKey

func (r *Store) RemoveFromKey(ctx context.Context, key string) error

func (*Store) RemoveFromTag

func (r *Store) RemoveFromTag(ctx context.Context, tag string) error

RemoveFromTag @param ctx @param tag @date 2022-07-02 08:12:08

func (*Store) RemoveTagKey

func (r *Store) RemoveTagKey(ctx context.Context, tag, key string) error

RemoveTagKey @param ctx @param tag @param key @date 2022-07-02 08:12:05

func (*Store) SaveTagKey

func (r *Store) SaveTagKey(ctx context.Context, tag, key string) error

SaveTagKey @param ctx @param tag @param key @date 2022-07-02 08:12:05

func (*Store) Set

func (r *Store) Set(ctx context.Context, key string, value any, ttl time.Duration) error

Set @param ctx @param key @param value @param ttl @date 2022-07-02 08:12:11

Jump to

Keyboard shortcuts

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