Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCacheMissed = errors.New("cache miss")
)
View Source
var WireSet = wire.NewSet( NewClient, NewTakenAccountName, NewTokenPublicKey, )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Set(ctx context.Context, key string, value any, ttl time.Duration) error
Get(ctx context.Context, key string) (any, error)
AddToSet(ctx context.Context, key string, value ...any) error
IsValueInSet(ctx context.Context, key string, value any) (bool, error)
}
func NewInMemoryClient ¶
Click to show internal directories.
Click to hide internal directories.