grpccache

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheClient

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

func New

func New(ip string, port string, login string, password string) *CacheClient

func (*CacheClient) Add added in v0.1.2

func (cc *CacheClient) Add(key string, value interface{}, duration time.Duration)

func (*CacheClient) Close added in v0.1.2

func (cc *CacheClient) Close() error

func (*CacheClient) Connect

func (cc *CacheClient) Connect() error

func (*CacheClient) Count

func (cc *CacheClient) Count(key string) int64

func (*CacheClient) Delete

func (cc *CacheClient) Delete(key string)

func (*CacheClient) Error

func (cc *CacheClient) Error() error

func (*CacheClient) Get

func (cc *CacheClient) Get(key string) (interface{}, bool)

func (*CacheClient) Replace added in v0.1.2

func (cc *CacheClient) Replace(key string, value interface{}, duration time.Duration)

func (*CacheClient) Set

func (cc *CacheClient) Set(key string, value interface{}, duration time.Duration)

Jump to

Keyboard shortcuts

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