Documentation
¶
Index ¶
- func New(opts ...cache.Option) (cache.RawCache, error)
- type Cache
- func (vc *Cache) Close() error
- func (vc *Cache) Decrement(ctx context.Context, key string, delta int64) (int64, error)
- func (vc *Cache) Delete(ctx context.Context, key string) error
- func (vc *Cache) Exists(ctx context.Context, key string) (bool, error)
- func (vc *Cache) Flush(ctx context.Context) error
- func (vc *Cache) Get(ctx context.Context, key string) ([]byte, bool, error)
- func (vc *Cache) Increment(ctx context.Context, key string, delta int64) (int64, error)
- func (vc *Cache) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a Valkey-backed cache implementation using the official Valkey client.
Click to show internal directories.
Click to hide internal directories.