Documentation
¶
Index ¶
- type RedisCache
- func (c *RedisCache) Exist(key string) bool
- func (c *RedisCache) Get(key string) (string, error)
- func (c *RedisCache) GetValueAndTTL(ctx context.Context, key string) (string, time.Duration, error)
- func (c *RedisCache) Set(key string, value string, expire int64) error
- func (c *RedisCache) TTL(key string) (time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisCache ¶
type RedisCache struct {
// contains filtered or unexported fields
}
func NewRedisCache ¶
func NewRedisCache() *RedisCache
func (*RedisCache) Exist ¶
func (c *RedisCache) Exist(key string) bool
func (*RedisCache) GetValueAndTTL ¶
Click to show internal directories.
Click to hide internal directories.