()
| 225 | } |
| 226 | |
| 227 | func newQuotaCacheStore() *quotaCacheStore { |
| 228 | c := "aCacheStore{ |
| 229 | rules: make(map[string]cachedRules), |
| 230 | usage: make(map[string]cachedUsage), |
| 231 | } |
| 232 | go c.cleanupLoop() |
| 233 | return c |
| 234 | } |
| 235 | |
| 236 | const ( |
| 237 | rulesCacheTTL = 30 * time.Second |