Versions in this module Expand all Collapse all v3 v3.6.1 Aug 18, 2020 v3.6.0 Aug 18, 2020 Changes in this version + func NewStore(client Client) (limiter.Store, error) + func NewStoreWithOptions(client Client, options limiter.StoreOptions) (limiter.Store, error) + type Client interface + Del func(keys ...string) *libredis.IntCmd + Eval func(script string, keys []string, args ...interface{}) *libredis.Cmd + Get func(key string) *libredis.StringCmd + Ping func() *libredis.StatusCmd + Set func(key string, value interface{}, expiration time.Duration) *libredis.StatusCmd + SetNX func(key string, value interface{}, expiration time.Duration) *libredis.BoolCmd + Watch func(handler func(*libredis.Tx) error, keys ...string) error + type Store struct + MaxRetry int + Prefix string + func (store *Store) Get(ctx context.Context, key string, rate limiter.Rate) (limiter.Context, error) + func (store *Store) Peek(ctx context.Context, key string, rate limiter.Rate) (limiter.Context, error) + func (store *Store) Reset(ctx context.Context, key string, rate limiter.Rate) (limiter.Context, error) Other modules containing this package github.com/sunlidea/limiter