Versions in this module Expand all Collapse all v0 v0.1.0 Feb 21, 2024 Changes in this version + var ErrCacheMiss = errors.New("key does not exist in the server") + var ErrClientError = errors.New("failed to store Value while appending/prepending") + var ErrError = errors.New("incorrect syntax or error while saving the Value") + var ErrEstablishConnection = errors.New("failed to establish connection") + var ErrExists = errors.New("someone else has modified the CAS Value since last fetch") + var ErrNoServers = errors.New("no servers are currently connected") + var ErrNotStored = errors.New("failed to store Value") + type Client struct + func New(addresses []string, connCount int) *Client + func (c *Client) Add(item *Item) error + func (c *Client) Append(item *Item) error + func (c *Client) Close() error + func (c *Client) CompareAndSwap(item *Item) error + func (c *Client) Decr(key string, delta uint64) (uint64, error) + func (c *Client) Delete(key string) error + func (c *Client) Get(key string) (*Item, error) + func (c *Client) Gets(key string) (*Item, error) + func (c *Client) Incr(key string, delta uint64) (uint64, error) + func (c *Client) Prepend(item *Item) error + func (c *Client) Replace(item *Item) error + func (c *Client) Set(item *Item) error + type ConnType int8 + const TCP + const UNIX + type Connection struct + type Item struct + CAS int64 + Expiration time.Duration + Flags int32 + Key string + Value []byte + type ServerList struct + func (sl *ServerList) InitializeConnectionPool(connCount int) (map[string][]*Connection, error)