Versions in this module Expand all Collapse all v1 v1.0.1 May 10, 2021 v1.0.0 May 9, 2021 Changes in this version + type DeleteOption func(d *DeleteOptions) + type DeleteOptions struct + type ListOption func(l *ListOptions) + func ListLimit(l uint) ListOption + func ListOffset(o uint) ListOption + func ListPrefix(p string) ListOption + func ListSuffix(s string) ListOption + type ListOptions struct + Limit uint + Offset uint + Prefix string + Suffix string + type Option func(o *Options) + func Namespace(ns string) Option + func Nodes(a ...string) Option + func Prefix(p string) Option + func Suffix(s string) Option + func WithContext(c context.Context) Option + type Options struct + Context context.Context + Namespace string + Nodes []string + Prefix string + Suffix string + type ReadOption func(r *ReadOptions) + func ReadLimit(l uint) ReadOption + func ReadOffset(o uint) ReadOption + func ReadPrefix() ReadOption + func ReadSuffix() ReadOption + type ReadOptions struct + Limit uint + Offset uint + Prefix bool + Suffix bool + type Record struct + Expiry time.Duration + Key string + Value []byte + type Store interface + Delete func(key string, opts ...DeleteOption) error + Init func(...Option) error + List func(opts ...ListOption) ([]string, error) + Options func() Options + Read func(key string, opts ...ReadOption) ([]*Record, error) + String func() string + Write func(r *Record, opts ...WriteOption) error + var DefaultStore Store = new(noopStore) + var ErrNotFound = errors.New("not found") + type WriteOption func(w *WriteOptions) + func WriteExpiry(t time.Time) WriteOption + func WriteTTL(d time.Duration) WriteOption + type WriteOptions struct + Expiry time.Time + TTL time.Duration Incompatible versions in this module v2.3.0+incompatible May 9, 2021