diff --git a/examples/caffeine/src/main/resources/application.yml b/examples/caffeine/src/main/resources/application.yml index 92ce3bff..24ddaba3 100644 --- a/examples/caffeine/src/main/resources/application.yml +++ b/examples/caffeine/src/main/resources/application.yml @@ -20,6 +20,7 @@ spring: bucket4j: enabled: true filter-config-caching-enabled: true + filter-config-cache-name: filterConfigCache filters: - id: filter1 cache-name: buckets diff --git a/examples/caffeine/src/test/resources/application-servlet.yml b/examples/caffeine/src/test/resources/application-servlet.yml index bebd9cab..2171ac8b 100644 --- a/examples/caffeine/src/test/resources/application-servlet.yml +++ b/examples/caffeine/src/test/resources/application-servlet.yml @@ -7,6 +7,8 @@ spring: spec: maximumSize=1000000,expireAfterAccess=3600s bucket4j: enabled: true + filter-config-caching-enabled: true + filter-config-cache-name: filterConfigCache filters: - id: filter1 cache-name: buckets_test diff --git a/examples/hazelcast/src/main/resources/application.yml b/examples/hazelcast/src/main/resources/application.yml index 567246f8..36e55ac6 100644 --- a/examples/hazelcast/src/main/resources/application.yml +++ b/examples/hazelcast/src/main/resources/application.yml @@ -8,6 +8,7 @@ spring: bucket4j: enabled: true filter-config-caching-enabled: true + filter-config-cache-name: filterConfigCache filters: - id: filter1 cache-name: buckets diff --git a/examples/redis-jedis/src/main/resources/application.yml b/examples/redis-jedis/src/main/resources/application.yml index d49c5ad6..8785e2cc 100644 --- a/examples/redis-jedis/src/main/resources/application.yml +++ b/examples/redis-jedis/src/main/resources/application.yml @@ -13,6 +13,8 @@ management: bucket4j: enabled: true cache-to-use: redis-jedis + filter-config-caching-enabled: true + filter-config-cache-name: filterConfigCache filters: - cache-name: buckets_test major-version: 2 @@ -35,7 +37,6 @@ bucket4j: time: 10 unit: seconds refill-speed: interval - filter-config-caching-enabled: true spring: main: diff --git a/examples/redis-lettuce/src/main/resources/application.yml b/examples/redis-lettuce/src/main/resources/application.yml index 00f2ac38..c296f131 100644 --- a/examples/redis-lettuce/src/main/resources/application.yml +++ b/examples/redis-lettuce/src/main/resources/application.yml @@ -13,6 +13,8 @@ management: bucket4j: enabled: true cache-to-use: redis-lettuce + filter-config-caching-enabled: true + filter-config-cache-name: filterConfigCache filters: - cache-name: buckets_test id: filter1 @@ -34,7 +36,6 @@ bucket4j: time: 10 unit: seconds refill-speed: interval - filter-config-caching-enabled: true spring: main: diff --git a/examples/redis-redisson/src/main/resources/application.yml b/examples/redis-redisson/src/main/resources/application.yml index 627cee48..615192bc 100644 --- a/examples/redis-redisson/src/main/resources/application.yml +++ b/examples/redis-redisson/src/main/resources/application.yml @@ -12,6 +12,8 @@ management: bucket4j: enabled: true cache-to-use: redis-redisson + filter-config-caching-enabled: true + filter-config-cache-name: filterConfigCache filters: - id: filter1 major-version: 1 @@ -39,7 +41,6 @@ bucket4j: time: 10 unit: seconds refill-speed: interval - filter-config-caching-enabled: true spring: main: diff --git a/examples/webflux-infinispan/src/main/resources/application.yml b/examples/webflux-infinispan/src/main/resources/application.yml index 3e1aa7eb..aae1a18b 100644 --- a/examples/webflux-infinispan/src/main/resources/application.yml +++ b/examples/webflux-infinispan/src/main/resources/application.yml @@ -16,6 +16,7 @@ infinispan: bucket4j: enabled: true filter-config-caching-enabled: true + filter-config-cache-name: filterConfigCache filters: - id: filter1 cache-name: buckets diff --git a/examples/webflux-infinispan/src/test/resources/application-webflux-infinispan.yml b/examples/webflux-infinispan/src/test/resources/application-webflux-infinispan.yml index c376bbf3..d68969d1 100644 --- a/examples/webflux-infinispan/src/test/resources/application-webflux-infinispan.yml +++ b/examples/webflux-infinispan/src/test/resources/application-webflux-infinispan.yml @@ -7,6 +7,7 @@ infinispan: bucket4j: enabled: true filter-config-caching-enabled: true + filter-config-cache-name: filterConfigCache filters: - id: filter1 cache-name: buckets_test diff --git a/examples/webflux/src/main/resources/application.yml b/examples/webflux/src/main/resources/application.yml index bd8bc296..84c55efa 100644 --- a/examples/webflux/src/main/resources/application.yml +++ b/examples/webflux/src/main/resources/application.yml @@ -1,28 +1,33 @@ -logging: - level: - com.giffing.bucket4j.spring.boot.starter: debug -management: - endpoints: - web: - exposure: - include: "*" -spring: cache: type: hazelcast -bucket4j: - enabled: true - filters: - - cache-name: buckets - filter-method: webflux - url: .* - http-content-type: application/json;charset=UTF-8 - http-response-body: '{ "name": "hello"}' - http-response-headers: HELLO: WORLD - filter-order: 1 - rate-limits: - - execute-predicates: - - name: PATH=/hell** - - name: METHOD=GET - - name: HEADER=User-Agent,.* - bandwidths: - - capacity: 5 - time: 10 - unit: seconds +logging: + level: + com.giffing.bucket4j.spring.boot.starter: debug +management: + endpoints: + web: + exposure: + include: "*" +spring: + cache: + type: hazelcast +bucket4j: + enabled: true + filter-config-caching-enabled: true + filter-config-cache-name: filterConfigCache + filters: + - cache-name: buckets + filter-method: webflux + url: .* + http-content-type: application/json;charset=UTF-8 + http-response-body: '{ "name": "hello"}' + http-response-headers: + HELLO: WORLD + filter-order: 1 + rate-limits: + - execute-predicates: + - name: PATH=/hell** + - name: METHOD=GET + - name: HEADER=User-Agent,.* + bandwidths: + - capacity: 5 + time: 10 + unit: seconds diff --git a/examples/webflux/src/test/resources/application-webflux.yml b/examples/webflux/src/test/resources/application-webflux.yml index 515ab0f2..5755e4d3 100644 --- a/examples/webflux/src/test/resources/application-webflux.yml +++ b/examples/webflux/src/test/resources/application-webflux.yml @@ -1,5 +1,7 @@ bucket4j: enabled: true + filter-config-caching-enabled: true + filter-config-cache-name: filterConfigCache filters: - id: filter1 cache-name: buckets_test