Categorygithub.com/hamba/cache/v2
modulepackage
2.0.0
Repository: https://github.com/hamba/cache.git
Documentation: pkg.go.dev

# README

Logo

Go Report Card Build Status Coverage Status GoDoc GitHub release GitHub license

Go cache adapters

Overview

Install with:

go get github.com/hamba/cache

# Packages

Package memcache implements a memcache adapter for github.com/hamba/pkg/cache.
Package redis implements a redis adapter for github.com/hamba/pkg/cache.

# Functions

NewItem creates a new Item.

# Variables

ErrCacheMiss is returned if a Get failed because the item wasn't present.
ErrNotStored is returned if conditional write (Add or Replace) failed because the condition was not met.
Null is the null Cache instance.

# Structs

Item represents an item to be returned or stored in the cache.

# Interfaces

Cache represents a cache instance.
Decoder represents a value decoder.