Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendConfig ¶
type BackendConfig struct {
// Base redis connection options
RedisOptions *redis.Options
}
type Cache ¶
type Cache interface { Set(ctx context.Context, key string, value []byte, expiration time.Duration) error BulkSet(ctx context.Context, entries ...CacheEntry) error Remove(ctx context.Context, keys ...string) error Get(ctx context.Context, key string) ([]byte, error) BulkGet(ctx context.Context, keys ...string) ([][]byte, error) Has(ctx context.Context, key string) (bool, error) Shutdown(ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.