redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn interface {
	Get(key string) (*Content, bool, error)
	Set(key string, content *Content, expiration time.Duration) error
	Del(key string) error
	Close() error
}

Conn is a single Redis connection.

type Content

type Content struct {
	StatusCode  int    `json:"status_code"`
	ContentType string `json:"content_type"`
	Data        []byte `json:"data"`
}

type Pool

type Pool interface {
	Get(ctx context.Context) Conn
}

Pool maintains a pool of Redis connections.

Directories

Path Synopsis
goredis
v9

Jump to

Keyboard shortcuts

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