cache

package
v0.0.0-...-efc180c Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package cache provides sample implementations of a cache handler for evego.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NilCache

func NilCache() evego.Cache

NilCache returns a struct satisfying the Cache interface that goes nowhere and does nothing. All calls will GNDN, and Get will always result in a cache miss. This option should probably not be used except for writing this package's tests.

func RedisCache

func RedisCache(server string, password ...string) evego.Cache

RedisCache returns a new evego.Cache object that uses a Redis backend. It takes a server hostname/port in the format accepted by net.Dial and, optionally, a password as parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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