redis

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

README

Redis Cache Provider by aah framework

Version GoDoc

Currently single node mode is support. Redis cluster support upcoming! aah cache library uses github.com/go-redis/redis library internally.

News

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

Usage

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

redis-cache-provider released under MIT License.

Documentation

Overview

Package redis provides redis cache provider for aah framework cache manager. Redis cluster support upcoming.

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() *redis.Client

Client method returns underlying redis 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