Versions in this module Expand all Collapse all v2 v2.0.2 Jun 15, 2022 v2.0.1 Jun 10, 2022 Changes in this version + var Defaultopt = Options + func WithAutoRefreshInterval(autoRefreshInterval string) optparams.Option[Options] + func WithCountPerPeriod(countPerPeriod int64) optparams.Option[Options] + func WithKey(key string) optparams.Option[Options] + func WithMaxBurst(maxBurst int64) optparams.Option[Options] + func WithMaxTTL(maxTTL time.Duration) optparams.Option[Options] + func WithMiddlewaretype(typename string) optparams.Option[Options] + func WithNamespace(ns ...string) optparams.Option[Options] + func WithPeriod(period int64) optparams.Option[Options] + func WithSpecifiedKey(key string) optparams.Option[Options] + func WithTaskCron(taskCron *cron.Cron) optparams.Option[Options] + type Options struct + CountPerPeriod int64 + MaxBurst int64 + MiddlewareOpts []optparams.Option[middlewarehelper.Options] + Middlewaretype string + Period int64 + type RedisCell struct + func New(cli redis.UniversalClient, opts ...optparams.Option[Options]) (*RedisCell, error) + func (c *RedisCell) ClThrottle(ctx context.Context, count int64) (*RedisCellStatus, error) + func (c *RedisCell) Clean(ctx context.Context) error + type RedisCellStatus struct + Blocked bool + Max int64 + Remaining int64 + ResetToMaxTime int64 + WaitForRetryTime int64