redis

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotExist = errors.New("key not found")

Functions

func FormatCacheKey

func FormatCacheKey(req *http.Request) string

Types

type CacheReader added in v0.1.0

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

func (*CacheReader) Close added in v0.1.0

func (c *CacheReader) Close() error

func (*CacheReader) Read added in v0.1.0

func (c *CacheReader) Read(p []byte) (int, error)

func (*CacheReader) WriteTo added in v0.1.0

func (c *CacheReader) WriteTo(w io.Writer) (int64, error)

type CacheWriter added in v0.1.0

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

func (*CacheWriter) Close added in v0.1.0

func (c *CacheWriter) Close() error

func (*CacheWriter) Write added in v0.1.0

func (c *CacheWriter) Write(p []byte) (int, error)

type Client

type Client struct {
	rueidis.Client
}

func Connect

func Connect(conf *config.Config) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) Get added in v0.1.0

func (c *Client) Get(ctx context.Context, req *http.Request, httpTimeout time.Duration) (*http.Response, error)

func (*Client) NewWriter added in v0.1.0

func (c *Client) NewWriter(ctx context.Context, req *http.Request, resp *http.Response, expiration time.Duration) (io.WriteCloser, error)

func (*Client) Ping

func (c *Client) Ping(ctx context.Context) error

Jump to

Keyboard shortcuts

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