Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
Set(ctx context.Context, key, val string) error
Get(ctx context.Context, key string) (string, error)
Delete(ctx context.Context, key string) error
GetBytes(ctx context.Context, key string) ([]byte, error)
SetTimed(ctx context.Context, key, val string, ttl int64) error
SetTimedInt64(ctx context.Context, key string, val int64, ttl int64) error
SetInt64(ctx context.Context, key string, val int64) error
SetTTL(ctx context.Context, key string, ttl int64) error
Incr(ctx context.Context, key string) (int64, error)
GetInt64(ctx context.Context, key string) (int64, error)
SetJSON(ctx context.Context, key string, val interface{}) error
GetJSON(ctx context.Context, key string, v interface{}) error
}
Click to show internal directories.
Click to hide internal directories.