some cleanup

This commit is contained in:
priyank-sriv 2020-05-13 23:24:55 +05:30
parent 34bbce7995
commit 911f840af5
2 changed files with 0 additions and 7 deletions

View File

@ -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);
}

View File

@ -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