Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Cache
 - type LocalCache
 - func (c *LocalCache) Clean(key string)
 - func (c *LocalCache) CleanAll()
 - func (c *LocalCache) Get(key string) (interface{}, bool, error)
 - func (c *LocalCache) GetAll(keys []string) map[string]interface{}
 - func (c *LocalCache) GetKeys(prefix string) ([]string, error)
 - func (c *LocalCache) Put(key string, value interface{})
 - func (c *LocalCache) PutAll(entries map[string]interface{})
 
- type MockCache
 - func (m MockCache) Clean(key string)
 - func (m MockCache) CleanAll()
 - func (m MockCache) Get(key string) (interface{}, bool, error)
 - func (m MockCache) GetAll(keys []string) map[string]interface{}
 - func (m MockCache) GetKeys(prefix string) ([]string, error)
 - func (m MockCache) Put(key string, value interface{})
 - func (m MockCache) PutAll(map[string]interface{})
 
- type RedisCache
 - func (rc *RedisCache) Clean(key string)
 - func (rc *RedisCache) CleanAll()
 - func (rc *RedisCache) Get(key string) (interface{}, bool, error)
 - func (rc *RedisCache) GetAll(keys []string) map[string]interface{}
 - func (rc *RedisCache) GetKeys(prefix string) ([]string, error)
 - func (rc *RedisCache) Put(key string, value interface{})
 - func (rc *RedisCache) PutAll(entries map[string]interface{})
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
	Put(key string, value interface{})
	PutAll(map[string]interface{})
	Get(key string) (interface{}, bool, error)
	GetAll(keys []string) map[string]interface{}
	Clean(key string)
	GetKeys(prefix string) ([]string, error)
	CleanAll()
}
    func GetCachingMechanism ¶
type LocalCache ¶
type LocalCache struct {
	// contains filtered or unexported fields
}
    func GetLocalCache ¶
func GetLocalCache() *LocalCache
func (*LocalCache) Clean ¶
func (c *LocalCache) Clean(key string)
func (*LocalCache) CleanAll ¶
func (c *LocalCache) CleanAll()
func (*LocalCache) GetAll ¶
func (c *LocalCache) GetAll(keys []string) map[string]interface{}
func (*LocalCache) Put ¶
func (c *LocalCache) Put(key string, value interface{})
func (*LocalCache) PutAll ¶
func (c *LocalCache) PutAll(entries map[string]interface{})
type RedisCache ¶
type RedisCache struct {
	// contains filtered or unexported fields
}
    func GetRedisCache ¶
func GetRedisCache(connStr string) *RedisCache
func (*RedisCache) Clean ¶
func (rc *RedisCache) Clean(key string)
func (*RedisCache) GetAll ¶
func (rc *RedisCache) GetAll(keys []string) map[string]interface{}
func (*RedisCache) Put ¶
func (rc *RedisCache) Put(key string, value interface{})
func (*RedisCache) PutAll ¶
func (rc *RedisCache) PutAll(entries map[string]interface{})
 Click to show internal directories. 
   Click to hide internal directories.