some cleanup
This commit is contained in:
parent
34bbce7995
commit
911f840af5
|
@ -14,7 +14,6 @@ public class PricingPlanService {
|
|||
|
||||
private final Map<String, Bucket> cache = new ConcurrentHashMap<>();
|
||||
|
||||
// @Cacheable("rate-limit-buckets")
|
||||
public Bucket resolveBucket(String apiKey) {
|
||||
return cache.computeIfAbsent(apiKey, this::newBucket);
|
||||
}
|
||||
|
|
|
@ -8,9 +8,3 @@ spring:
|
|||
throw-exception-if-no-handler-found: true
|
||||
resources:
|
||||
add-mappings: false
|
||||
cache:
|
||||
cache-names:
|
||||
- rate-limit-buckets
|
||||
caffeine:
|
||||
spec: maximumSize=100000,expireAfterAccess=3600s
|
||||
|
Loading…
Reference in New Issue