Browse Source

Revert application properties for apiKeys cache

pull/14074/head
Andrii Landiak 8 months ago
parent
commit
ebaebae020
  1. 2
      dao/src/main/java/org/thingsboard/server/dao/pat/ApiKeyServiceImpl.java
  2. 3
      dao/src/test/resources/application-test.properties

2
dao/src/main/java/org/thingsboard/server/dao/pat/ApiKeyServiceImpl.java

@ -60,7 +60,7 @@ public class ApiKeyServiceImpl extends AbstractCachedEntityService<ApiKeyCacheKe
@Value("${security.api_key.value_prefix:}")
private String prefix;
@Value("${security.api_key.value_bytes_size:}")
@Value("${security.api_key.value_bytes_size:64}")
private int valueBytesSize;
@Override

3
dao/src/test/resources/application-test.properties

@ -114,6 +114,9 @@ cache.specs.trendzSettings.maxSize=10000
cache.specs.aiModel.timeToLiveInMinutes=1440
cache.specs.aiModel.maxSize=10000
cache.specs.apiKeys.timeToLiveInMinutes=1440
cache.specs.apiKeys.maxSize=10000
redis.connection.host=localhost
redis.connection.port=6379
redis.connection.db=0

Loading…
Cancel
Save