rediscache

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package rediscache provides an implementation of prototransform.Cache that is backed by a Redis instance: https://redis.io/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) (prototransform.Cache, error)

New creates a new Redis-backed cache with the given configuration.

Types

type Config

type Config struct {
	Client     *redis.Pool
	KeyPrefix  string
	Expiration time.Duration
}

Config represents the configuration parameters used to create a new Redis-backed cache.

Jump to

Keyboard shortcuts

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