redis_cache_impl

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisCache

type RedisCache struct {
	bean.Component
	cache_factory.DefaultCacheImpl
	// contains filtered or unexported fields
}

func (*RedisCache) Conn

func (r *RedisCache) Conn() (cache_factory.ICache, error)

func (*RedisCache) Del

func (r *RedisCache) Del(key string) (interface{}, error)

func (*RedisCache) Get

func (r *RedisCache) Get(key string) (interface{}, error)

func (*RedisCache) Save

func (r *RedisCache) Save(key string, value interface{}) (interface{}, error)

type RedisConfig

type RedisConfig struct {
	Host     string `json:"host" yaml:"host"`
	Username string `json:"username" yaml:"username"`
	Password string `json:"password" yaml:"password"`
	DB       int    `json:"db" yaml:"db"`
}

Jump to

Keyboard shortcuts

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