tlmemcache

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by tl2gen; DO NOT EDIT.

Code generated by tl2gen; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Add

type AddBytes

type Client

type Client struct {
	Client  rpc.Client
	Network string // should be either "tcp4" or "unix"
	Address string
	ActorID int64         // should be >0 for routing via rpc-proxy
	Timeout time.Duration // set to extra.CustomTimeoutMs, if not already set
}

func (*Client) Add

func (c *Client) Add(ctx context.Context, args Add, extra *rpc.InvokeReqExtra, ret *bool) (err error)

sets value iff the key is absent

func (*Client) AddBytes

func (c *Client) AddBytes(ctx context.Context, args AddBytes, extra *rpc.InvokeReqExtra, ret *bool) (err error)

sets value iff the key is absent

type Handler

type Handler struct {
	// sets value iff the key is absent
	Add func(ctx context.Context, args Add) (bool, error) // memcache.add

}

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, hctx *rpc.HandlerContext) (err error)

Jump to

Keyboard shortcuts

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