Documentation ¶
Index ¶
- type RedisHotCache
- func (r RedisHotCache[T]) Delete(ctx context.Context, key string) error
- func (r RedisHotCache[T]) Exists(ctx context.Context, key string) (bool, error)
- func (r RedisHotCache[T]) Expiry(ctx context.Context, key string) (time.Duration, error)
- func (r RedisHotCache[T]) Get(ctx context.Context, key string) (*T, error)
- func (r RedisHotCache[T]) Increment(ctx context.Context, key string, value int64) error
- func (r RedisHotCache[T]) IncrementOne(ctx context.Context, key string) error
- func (r RedisHotCache[T]) Set(ctx context.Context, key string, value *T, expiry time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisHotCache ¶
func (RedisHotCache[T]) Delete ¶
func (r RedisHotCache[T]) Delete(ctx context.Context, key string) error
func (RedisHotCache[T]) Get ¶
func (r RedisHotCache[T]) Get(ctx context.Context, key string) (*T, error)
func (RedisHotCache[T]) IncrementOne ¶
func (r RedisHotCache[T]) IncrementOne(ctx context.Context, key string) error
Click to show internal directories.
Click to hide internal directories.