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<>();
|
private final Map<String, Bucket> cache = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
// @Cacheable("rate-limit-buckets")
|
|
||||||
public Bucket resolveBucket(String apiKey) {
|
public Bucket resolveBucket(String apiKey) {
|
||||||
return cache.computeIfAbsent(apiKey, this::newBucket);
|
return cache.computeIfAbsent(apiKey, this::newBucket);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,9 +8,3 @@ spring:
|
||||||
throw-exception-if-no-handler-found: true
|
throw-exception-if-no-handler-found: true
|
||||||
resources:
|
resources:
|
||||||
add-mappings: false
|
add-mappings: false
|
||||||
cache:
|
|
||||||
cache-names:
|
|
||||||
- rate-limit-buckets
|
|
||||||
caffeine:
|
|
||||||
spec: maximumSize=100000,expireAfterAccess=3600s
|
|
||||||
|
|
Loading…
Reference in New Issue