redis

package
v0.0.0-...-1f4a71b Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package redis provides a redis interface for http caching.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWithClient

func NewWithClient(client *redis.Client, opts ...Opt) httpcache.Cache

NewWithClient returns a new Cache with the given redis connection.

Types

type Opt

type Opt func(*cache)

Opt is a configuration option for creating a new Redis cache

func ExpirationOpt

func ExpirationOpt(expiration time.Duration) Opt

ExpirationOpt configures a Redis cache by setting its expiration

Jump to

Keyboard shortcuts

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