cachetest

package
v0.0.0-...-b47e1f0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestCache

func NewTestCache(t *testing.T) *cache.Cache

NewTestCache is a function useful for stubbing out caches in tests.

func NewTestCacheWithData

func NewTestCacheWithData(t *testing.T, m map[string]interface{}) *cache.Cache

NewTestCacheWithData creates a test cache with the provided key-values. String values are set using Cache.Put. All other values are set with Cache.PutStruct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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