Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Cache ¶
type Cache interface { patterns.Connectable Get(ctx context.Context, key string) ([]byte, error) Set(ctx context.Context, key string, entry []byte, ttl time.Duration) error StringGet(ctx context.Context, key string) (string, error) StringSet(ctx context.Context, key string, entry string, ttl time.Duration) error Exist(ctx context.Context, key string) bool Del(ctx context.Context, key string) error ExpireAt(ctx context.Context, key string, at time.Time) (bool, error) }
Click to show internal directories.
Click to hide internal directories.