Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { Exists(ctx context.Context, key string) (bool, error) Get(ctx context.Context, key string) ([]byte, error) Set(ctx context.Context, key string, ttl time.Duration, data []byte) error Delete(ctx context.Context, key string) error // Deprecated Lock(ctx context.Context, key string) error // Deprecated Unlock(ctx context.Context, key string) error ObtainLock(ctx context.Context, key string) (Lock, error) }
Click to show internal directories.
Click to hide internal directories.