cache

package
v0.0.0-...-d3cfb62 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	C *redis.Client
}

func NewCache

func NewCache(ctx context.Context, cfg configuration.CacheConfig) (*Cache, error)

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) GetIdempotency

func (c *Cache) GetIdempotency(ctx context.Context, key string) (*http.Response, error)

func (*Cache) SetIdempotency

func (c *Cache) SetIdempotency(
	ctx context.Context,
	key string,
	response *http.Response,
	ttl time.Duration,
) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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