import "golang.org/x/website/internal/memcache"
Package memcache provides a minimally compatible interface for google.golang.org/appengine/memcache and stores the data in Redis (e.g., via Cloud Memorystore).
type Client struct {
// contains filtered or unexported fields
}
Get gets the item.
func (c *Client) WithCodec(codec Codec) *CodecClient
type Codec struct { Marshal func(interface{}) ([]byte, error) Unmarshal func([]byte, interface{}) error }
type CodecClient struct {
// contains filtered or unexported fields
}
type Item struct { Key string Value []byte Object interface{} // Used with Codec. Expiration time.Duration // Read-only. }
Package memcache imports 7 packages (graph) and is imported by 3 packages. Updated 2021-01-15. Refresh now. Tools for package owners.