inmemory

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2018 License: MIT Imports: 5 Imported by: 0

README

Inmemory Cache Provider by aah framework

Version GoDoc

High performance, eviction modes (TTL, NoTTL, Slide), goroutine safe inmemory cache provider. Library keeps cache entries on heap but omits GC and without impact on performance by applying trick of go1.5 map non-pointer values.

News

  • v0.1.0 released and tagged on Dec 02, 2018.

Usage

# go.mod
require aahframe.work/cache/provider/inmemory v0.1.0

Visit official website https://aahframework.org to learn more about aah framework.

Issues

Please report issues at https://aahframework.org/issues.

Author

Jeevanandam M. (jeeva@myjeeva.com)

License

inmemory-cache-provider released under MIT License.

Documentation

Index

Constants

View Source
const Version = "0.1.0"

Version number of library.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider struct represents the in-memory cache provider.

func (*Provider) Create

func (p *Provider) Create(cfg *cache.Config) (cache.Cache, error)

Create method creates new in-memory cache with given options.

func (*Provider) Init

func (p *Provider) Init(name string, _ *config.Config, _ log.Loggerer) error

Init method is not applicable for in-memory cache provider.

Jump to

Keyboard shortcuts

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