Documentation
¶
Index ¶
- type Memory
- func (m *Memory) Connect() error
- func (m *Memory) Connection() wega.CacheConnection
- func (m *Memory) Get(key string) (string, bool)
- func (m *Memory) GetJSON(key string, obj interface{}) bool
- func (m *Memory) Set(key string, val string, expiration time.Duration) bool
- func (m *Memory) SetJSON(key string, obj interface{}, expiration time.Duration) bool
- type Redis
- func (r *Redis) Connect() error
- func (r *Redis) Connection() wega.CacheConnection
- func (r *Redis) Get(key string) (string, bool)
- func (r *Redis) GetJSON(key string, obj interface{}) bool
- func (r *Redis) Set(key string, val string, expiration time.Duration) bool
- func (r *Redis) SetJSON(key string, obj interface{}, expiration time.Duration) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
func (*Memory) Connection ¶
func (m *Memory) Connection() wega.CacheConnection
type Redis ¶
func (*Redis) Connection ¶
func (r *Redis) Connection() wega.CacheConnection
Click to show internal directories.
Click to hide internal directories.