redis

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package redis for cache provider

depend on github.com/gomodule/redigo/redis

go install github.com/gomodule/redigo/redis

Usage: import(

_ "github.com/W3-Engineers-Ltd/Radiant/client/cache/redis"
"github.com/W3-Engineers-Ltd/Radiant/client/cache"

)

bm, err := cache.NewCache("redis", `{"conn":"127.0.0.1:11211"}`)

more docs http://radiant.me/docs/module/cache.md

Index

Constants

This section is empty.

Variables

View Source
var DefaultKey = "radicalcacheRedis"

DefaultKey the collection name of redis for cache adapter.

Functions

func NewRedisCache

func NewRedisCache() cache.Cache

NewRedisCache create new redis cache with default collection name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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