Documentation
¶
Index ¶
- type RedisClient
- func (client *RedisClient) CacheData(key string, value interface{}, ttl time.Duration) error
- func (client *RedisClient) ComputeCacheKey(context, id, object string) string
- func (client *RedisClient) GetCachedData(key string) (string, error)
- func (client *RedisClient) PublishMessageToRedisChannel(channel, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
func NewRedisClient ¶
func NewRedisClient(url string) *RedisClient
func (*RedisClient) CacheData ¶
func (client *RedisClient) CacheData(key string, value interface{}, ttl time.Duration) error
func (*RedisClient) ComputeCacheKey ¶
func (client *RedisClient) ComputeCacheKey(context, id, object string) string
func (*RedisClient) GetCachedData ¶
func (client *RedisClient) GetCachedData(key string) (string, error)
func (*RedisClient) PublishMessageToRedisChannel ¶
func (client *RedisClient) PublishMessageToRedisChannel(channel, message string) error
Click to show internal directories.
Click to hide internal directories.