Categorygithub.com/Shopify/go-cache/v2
modulepackage
2.3.0
Repository: https://github.com/shopify/go-cache.git
Documentation: pkg.go.dev

# README

Cache

go-cache is a Go package which abstracts cache systems

Inspired from https://github.com/gookit/cache, but designed to be wrapped, similar to https://github.com/Shopify/go-storage.

Requirements

Installation

$ go get github.com/Shopify/go-cache

Usage

All caches in this package follow a simple interface.

If you want, you may wrap the Client to inject functionality, like a circuit breaker, logging, or metrics.

# Packages

No description provided by the author

# Functions

No description provided by the author
NewMemoryClient returns a Client that only stores in memory.
NewPrefixClient returns a Client that adds a prefix to all keys.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Interfaces

Client is inspired from *memcached.Client.