Documentation ¶
Index ¶
- type AccessCache
- type Cache
- func (c *Cache) Delete(key string) error
- func (c *Cache) GetBytes(key string) ([]byte, error)
- func (c *Cache) GetCounter(keyId string, rateLimitUnit key.TimeUnit) (int64, error)
- func (c *Cache) IncrementCounter(keyId string, timeUnit key.TimeUnit, incr int64) error
- func (c *Cache) Set(key string, value interface{}, ttl time.Duration) error
- type KeysCache
- type ProviderSettingsCache
- type Store
- type ThreadCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessCache ¶ added in v1.9.0
type AccessCache struct {
// contains filtered or unexported fields
}
func NewAccessCache ¶ added in v1.9.0
func NewAccessCache(c *redis.Client, wt time.Duration, rt time.Duration) *AccessCache
func (*AccessCache) Delete ¶ added in v1.9.6
func (ac *AccessCache) Delete(key string) error
func (*AccessCache) GetAccessStatus ¶ added in v1.9.0
func (ac *AccessCache) GetAccessStatus(key string) bool
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) GetCounter ¶
func (*Cache) IncrementCounter ¶
type KeysCache ¶ added in v1.34.0
type KeysCache struct {
// contains filtered or unexported fields
}
func NewKeysCache ¶ added in v1.34.0
type ProviderSettingsCache ¶ added in v1.34.0
type ProviderSettingsCache struct {
// contains filtered or unexported fields
}
func NewProviderSettingsCache ¶ added in v1.34.0
func NewProviderSettingsCache(c *redis.Client, wt time.Duration, rt time.Duration) *ProviderSettingsCache
func (*ProviderSettingsCache) Delete ¶ added in v1.34.0
func (c *ProviderSettingsCache) Delete(pid string) error
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteCounter ¶
type ThreadCache ¶ added in v1.11.0
type ThreadCache struct {
// contains filtered or unexported fields
}
func NewThreadCache ¶ added in v1.11.0
func NewThreadCache(c *redis.Client, wt time.Duration, rt time.Duration) *ThreadCache
func (*ThreadCache) Delete ¶ added in v1.11.0
func (ac *ThreadCache) Delete(key string) error
func (*ThreadCache) GetThreadStatus ¶ added in v1.11.0
func (ac *ThreadCache) GetThreadStatus(key string) bool
Click to show internal directories.
Click to hide internal directories.