Documentation ¶
Index ¶
- Variables
- type CacheInterface
- type Local
- func (r *Local) Delete(_ context.Context, keys ...string) error
- func (r *Local) Flush(_ context.Context) error
- func (r *Local) Get(_ context.Context, key interface{}, _ interface{}) (interface{}, error)
- func (r *Local) GetSet(ctx context.Context, key string, target interface{}, ...) error
- func (r *Local) Set(_ context.Context, key interface{}, value interface{}, ...) error
- type Redis
- func (r Redis) Delete(ctx context.Context, keys ...string) error
- func (r Redis) Flush(ctx context.Context) error
- func (r Redis) Get(ctx context.Context, key interface{}, dest interface{}) (interface{}, error)
- func (r Redis) GetSet(ctx context.Context, key string, target interface{}, ...) error
- func (r Redis) Set(ctx context.Context, key interface{}, value interface{}, ...) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CacheInterface ¶
type CacheInterface interface { Get(ctx context.Context, key interface{}, dest interface{}) (interface{}, error) Set(ctx context.Context, key interface{}, value interface{}, expiration time.Duration) error Delete(ctx context.Context, keys ...string) error Flush(ctx context.Context) error GetSet(ctx context.Context, key string, target interface{}, function func() (interface{}, error), expiration time.Duration) error }
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.