Documentation
¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) Del(_ context.Context, key string) error
- func (c *Client) Expire(_ context.Context, key string, expiration time.Duration) error
- func (c *Client) Get(_ context.Context, key string) (string, error)
- func (c *Client) Set(_ context.Context, key string, value any, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client はプロセス内メモリを使ったキーバリューストアの実装。 外部サービス不要で動作するが、プロセス終了とともにデータは失われる。
Click to show internal directories.
Click to hide internal directories.