Versions in this module Expand all Collapse all v0 v0.2.0 Apr 12, 2020 v0.1.0 Nov 13, 2019 Changes in this version + const DEFAULT_EXPIRATION + const FOREVER_EXPIRATION + const LOGGING_PREFIX + type RedisCacher struct + Logger core.ILogger + func MakeRedisCacher(pool *redis.Pool, defaultExpiration time.Duration, logger core.ILogger) *RedisCacher + func NewRedisCacher(host string, password string, defaultExpiration time.Duration, ...) *RedisCacher + func (c *RedisCacher) ClearBeans(tableName string) + func (c *RedisCacher) ClearIds(tableName string) + func (c *RedisCacher) DelBean(tableName string, id string) + func (c *RedisCacher) DelIds(tableName, sql string) + func (c *RedisCacher) Flush() error + func (c *RedisCacher) GetBean(tableName string, id string) interface{} + func (c *RedisCacher) GetIds(tableName, sql string) interface{} + func (c *RedisCacher) GetPool() (*redis.Pool, error) + func (c *RedisCacher) PutBean(tableName string, id string, obj interface{}) + func (c *RedisCacher) PutIds(tableName, sql string, ids interface{}) + func (c *RedisCacher) SetPool(pool *redis.Pool)