stores

package
v0.0.0-...-3262849 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryCache

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

func InMemory

func InMemory() *InMemoryCache

func (*InMemoryCache) Get

func (c *InMemoryCache) Get(key string) (interface{}, error)

func (*InMemoryCache) GetBool

func (c *InMemoryCache) GetBool(key string) (bool, error)

func (*InMemoryCache) GetFloat64

func (c *InMemoryCache) GetFloat64(key string) (float64, error)

func (*InMemoryCache) GetInt

func (c *InMemoryCache) GetInt(key string) (int, error)

func (*InMemoryCache) GetString

func (c *InMemoryCache) GetString(key string) (string, error)

func (*InMemoryCache) GetStringMap

func (c *InMemoryCache) GetStringMap(key string) (map[string]string, error)

func (*InMemoryCache) GetStringSlice

func (c *InMemoryCache) GetStringSlice(key string) ([]string, error)

func (*InMemoryCache) Keys

func (c *InMemoryCache) Keys() ([]string, error)

func (*InMemoryCache) Set

func (c *InMemoryCache) Set(key string, value interface{}) error

type RedisCache

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

func Redis

func Redis(addr, pwd string, db int) (*RedisCache, error)

func (*RedisCache) Get

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

func (*RedisCache) GetBool

func (c *RedisCache) GetBool(key string) (bool, error)

func (*RedisCache) GetFloat64

func (c *RedisCache) GetFloat64(key string) (float64, error)

func (*RedisCache) GetInt

func (c *RedisCache) GetInt(key string) (int, error)

func (*RedisCache) GetString

func (c *RedisCache) GetString(key string) (string, error)

func (*RedisCache) GetStringMap

func (c *RedisCache) GetStringMap(key string) (map[string]string, error)

func (*RedisCache) GetStringSlice

func (c *RedisCache) GetStringSlice(key string) ([]string, error)

func (*RedisCache) Keys

func (c *RedisCache) Keys() ([]string, error)

func (*RedisCache) Set

func (c *RedisCache) Set(key string, value interface{}) error

Jump to

Keyboard shortcuts

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