Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
Close() error
Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error
Get(ctx context.Context, key string, dest any) error
GetString(ctx context.Context, key string) (string, error)
GetInt(ctx context.Context, key string) (int, error)
GetFloat(ctx context.Context, key string) (float64, error)
GetBytes(ctx context.Context, key string) ([]byte, error)
Exists(ctx context.Context, key string) bool
Keys(ctx context.Context, pattern string) ([]string, error)
Delete(ctx context.Context, keys ...string) error
DeletePattern(ctx context.Context, pattern string) error
Flush(ctx context.Context) (string, error)
}
Click to show internal directories.
Click to hide internal directories.