redis: aahframe.work/cache/provider/redis Index | Files

package redis

import "aahframe.work/cache/provider/redis"

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

Index

Package Files

redis.go version.go

Constants

const Version = "0.1.0"

Version number of library.

type Provider Uses

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

Provider struct represents the Redis cache provider.

func (*Provider) Client Uses

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 Uses

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

Create method creates new Redis cache with given options.

func (*Provider) Init Uses

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

Init method initializes the Redis cache provider.

Package redis imports 11 packages (graph). Updated 2019-08-30. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).