redis

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 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 New added in v1.2.0

func New(client redis.Conn, roundTripper http.RoundTripper) *httpcache.Transport

New returns a new Transport using the redis cache implementation

func NewTransport added in v1.1.0

func NewTransport(c httpcache.Cache) *httpcache.Transport

NewTransport returns a new Transport with the provided Cache implementation and MarkCachedResponses set to true

func NewWithClient

func NewWithClient(client redis.Conn) httpcache.Cache

NewWithClient returns a new Cache with the given redis connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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