Documentation
¶
Index ¶
- type Cache
- type RedisCache
- func (s *RedisCache) Exist(ctx context.Context, key string) (bool, error)
- func (s *RedisCache) Get(ctx context.Context, key string, value interface{}) (exist bool, err error)
- func (s *RedisCache) Put(ctx context.Context, key string, value interface{}, expiration time.Duration) error
- func (s *RedisCache) Remove(ctx context.Context, key string) 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(client *redis.Client) *RedisCache
Click to show internal directories.
Click to hide internal directories.