Documentation ¶
Index ¶
- type RuedisHotCache
- func (r RuedisHotCache[T]) Delete(ctx context.Context, key string) error
- func (r RuedisHotCache[T]) Exists(ctx context.Context, key string) (bool, error)
- func (r RuedisHotCache[T]) Expiry(ctx context.Context, key string) (time.Duration, error)
- func (r RuedisHotCache[T]) Get(ctx context.Context, key string) (*T, error)
- func (r RuedisHotCache[T]) Increment(ctx context.Context, key string, value int64) error
- func (r RuedisHotCache[T]) IncrementOne(ctx context.Context, key string) error
- func (r RuedisHotCache[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 RuedisHotCache ¶
func (RuedisHotCache[T]) Delete ¶
func (r RuedisHotCache[T]) Delete(ctx context.Context, key string) error
func (RuedisHotCache[T]) Get ¶
func (r RuedisHotCache[T]) Get(ctx context.Context, key string) (*T, error)
func (RuedisHotCache[T]) IncrementOne ¶
func (r RuedisHotCache[T]) IncrementOne(ctx context.Context, key string) error
Click to show internal directories.
Click to hide internal directories.