Documentation ¶
Index ¶
- type InMemoryCache
- func (c *InMemoryCache) Get(key string) (interface{}, error)
- func (c *InMemoryCache) GetBool(key string) (bool, error)
- func (c *InMemoryCache) GetFloat64(key string) (float64, error)
- func (c *InMemoryCache) GetInt(key string) (int, error)
- func (c *InMemoryCache) GetString(key string) (string, error)
- func (c *InMemoryCache) GetStringMap(key string) (map[string]string, error)
- func (c *InMemoryCache) GetStringSlice(key string) ([]string, error)
- func (c *InMemoryCache) Keys() ([]string, error)
- func (c *InMemoryCache) Set(key string, value interface{}) error
- type RedisCache
- func (c *RedisCache) Get(key string) (interface{}, error)
- func (c *RedisCache) GetBool(key string) (bool, error)
- func (c *RedisCache) GetFloat64(key string) (float64, error)
- func (c *RedisCache) GetInt(key string) (int, error)
- func (c *RedisCache) GetString(key string) (string, error)
- func (c *RedisCache) GetStringMap(key string) (map[string]string, error)
- func (c *RedisCache) GetStringSlice(key string) ([]string, error)
- func (c *RedisCache) Keys() ([]string, error)
- func (c *RedisCache) Set(key string, value interface{}) error
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) GetFloat64 ¶
func (c *InMemoryCache) GetFloat64(key string) (float64, 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 (*RedisCache) Get ¶
func (c *RedisCache) Get(key string) (interface{}, error)
func (*RedisCache) GetFloat64 ¶
func (c *RedisCache) GetFloat64(key string) (float64, 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
Click to show internal directories.
Click to hide internal directories.