cache

package
v0.0.0-...-21114aa Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd

type Etcd struct {
	EndPoints []string
	// contains filtered or unexported fields
}

func NewEtcd

func NewEtcd(endpoints []string) (*Etcd, error)

func (*Etcd) Del

func (e *Etcd) Del(key string) error

Del key

func (*Etcd) Get

func (e *Etcd) Get(key string) (string, error)

Get key value

func (*Etcd) HGet

func (e *Etcd) HGet(key, field string) (string, error)

HGet key field value

func (*Etcd) HSet

func (e *Etcd) HSet(key string, fields map[string]string) error

HSet key field value

func (*Etcd) LessHSet

func (e *Etcd) LessHSet(key string, fields map[string]string, ttl int64) error

LessHSet key field value

func (*Etcd) LessSet

func (e *Etcd) LessSet(key, value string, ttl int64) error

LessSet key value

func (*Etcd) Set

func (e *Etcd) Set(key, value string) error

Set key value

func (*Etcd) Watch

func (e *Etcd) Watch(key string) error

Watch key

Jump to

Keyboard shortcuts

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