cache

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for the Cache service.

func New

func New(addr string, opts ...Option) *Client

func (*Client) Get

func (c *Client) Get(ctx context.Context, key, namespace, scope string) ([]byte, error)

func (*Client) Set

func (c *Client) Set(ctx context.Context, key, namespace, scope string, value []byte, ttl int) error

type Option

type Option func(*Client)

func WithHTTPClient

func WithHTTPClient(client *http.Client) Option

Jump to

Keyboard shortcuts

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