memcache

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: 10 Imported by: 0

README

Memcache Cache Provider by aah framework

Version GoDoc

Memcache Cache Provider for aah Cache Manager. aah cache library uses github.com/bradfitz/gomemcache/memcache library internally.

News

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

Usage

# go.mod
require aahframe.work/cache/provider/memcache 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

memcache-cache-provider released under MIT License.

Documentation

Overview

Package memcache provides memcache cache provider for aah framework cache manager.

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 Redis cache provider.

func (*Provider) Client

func (p *Provider) Client() *memcache.Client

Client method returns underlying memcache client. So that aah user could perform cache provider specific features.

func (*Provider) Create

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

Create method creates new Redis cache with given options.

func (*Provider) Init

func (p *Provider) Init(providerName string, appCfg *config.Config, logger log.Loggerer) error

Init method initializes the Redis cache provider.

Jump to

Keyboard shortcuts

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