Documentation
¶
Index ¶
- type Client
- func (c *Client) Decrement(ctx context.Context, key string, by int64) (int64, error)
- func (c *Client) Delete(ctx context.Context, key string) error
- func (c *Client) Forever(ctx context.Context, key string, value any) error
- func (c *Client) Get(ctx context.Context, key string) (any, error)
- func (c *Client) Has(ctx context.Context, key string) (bool, error)
- func (c *Client) Increment(ctx context.Context, key string, by int64) (int64, error)
- func (c *Client) Pull(ctx context.Context, key string) (v any, e error)
- func (c *Client) Put(ctx context.Context, key string, value any, ttl time.Duration) error
- func (c *Client) Remember(ctx context.Context, key string, ttl time.Duration, ...) (any, error)
- func (c *Client) RememberForever(ctx context.Context, key string, compute func() (any, error)) (any, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Click to show internal directories.
Click to hide internal directories.