redis

package module
v0.0.0-...-1fd8c42 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const REDIS object.Type = "redis.client"

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, args ...object.Object) object.Object

func Module

func Module() *object.Module

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(client *redis.Client) *Client

func (*Client) Cost

func (r *Client) Cost() int

func (*Client) Decr

func (r *Client) Decr(ctx context.Context, args ...object.Object) object.Object

func (*Client) Del

func (r *Client) Del(ctx context.Context, args ...object.Object) object.Object

func (*Client) Equals

func (r *Client) Equals(other object.Object) object.Object

func (*Client) Exists

func (r *Client) Exists(ctx context.Context, args ...object.Object) object.Object

func (*Client) Expire

func (r *Client) Expire(ctx context.Context, args ...object.Object) object.Object

func (*Client) FlushDB

func (r *Client) FlushDB(ctx context.Context, args ...object.Object) object.Object

func (*Client) Get

func (r *Client) Get(ctx context.Context, args ...object.Object) object.Object

func (*Client) GetAttr

func (r *Client) GetAttr(name string) (object.Object, bool)

func (*Client) Incr

func (r *Client) Incr(ctx context.Context, args ...object.Object) object.Object

func (*Client) Inspect

func (r *Client) Inspect() string

func (*Client) Interface

func (r *Client) Interface() interface{}

func (*Client) IsTruthy

func (r *Client) IsTruthy() bool

func (*Client) Keys

func (r *Client) Keys(ctx context.Context, args ...object.Object) object.Object

func (*Client) Ping

func (r *Client) Ping(ctx context.Context, args ...object.Object) object.Object

func (*Client) RunOperation

func (r *Client) RunOperation(opType op.BinaryOpType, right object.Object) object.Object

func (*Client) Set

func (r *Client) Set(ctx context.Context, args ...object.Object) object.Object

func (*Client) SetAttr

func (r *Client) SetAttr(name string, value object.Object) error

func (*Client) TTL

func (r *Client) TTL(ctx context.Context, args ...object.Object) object.Object

func (*Client) Type

func (r *Client) Type() object.Type

Jump to

Keyboard shortcuts

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