memcache

package
v1.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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 ... クライアント

func NewClient

func NewClient() *Client

NewClient ... クライアントを作成する

func (*Client) GetOrSet

func (c *Client) GetOrSet(key string, fn func(key string) (interface{}, int, error)) (interface{}, error)

GetOrSet ... キャッシュを取得(設定)する

type Datum

type Datum struct {
	Value     interface{}
	ExpiredAt int64
}

Datum ... インメモリキャッシュ

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL