Documentation
¶
Index ¶
- func New(opts ...cache.Option) (cache.RawCache, error)
- type Cache
- func (rc *Cache) Close() error
- func (rc *Cache) Decrement(ctx context.Context, key string, delta int64) (int64, error)
- func (rc *Cache) Delete(ctx context.Context, key string) error
- func (rc *Cache) Exists(ctx context.Context, key string) (bool, error)
- func (rc *Cache) Flush(ctx context.Context) error
- func (rc *Cache) Get(ctx context.Context, key string) ([]byte, bool, error)
- func (rc *Cache) Increment(ctx context.Context, key string, delta int64) (int64, error)
- func (rc *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 Redis-backed cache implementation.
Click to show internal directories.
Click to hide internal directories.