From fb294561e6403c2afdace8f6629776057c8c72c6 Mon Sep 17 00:00:00 2001 From: Jan Bols Date: Thu, 19 Jul 2018 11:21:04 +0200 Subject: [PATCH] Cache assets when finding them by tenant and name cfr the caching of devices => add asset in cache directives of config files --- application/src/main/resources/thingsboard.yml | 3 +++ dao/src/test/resources/application-test.properties | 3 +++ 2 files changed, 6 insertions(+) diff --git a/application/src/main/resources/thingsboard.yml b/application/src/main/resources/thingsboard.yml index 2a2728dbb4..89dde0ae51 100644 --- a/application/src/main/resources/thingsboard.yml +++ b/application/src/main/resources/thingsboard.yml @@ -291,6 +291,9 @@ caffeine: devices: timeToLiveInMinutes: 1440 maxSize: 100000 + assets: + timeToLiveInMinutes: 1440 + maxSize: 100000 redis: # standalone or cluster diff --git a/dao/src/test/resources/application-test.properties b/dao/src/test/resources/application-test.properties index f2dab45491..20cf91c3dd 100644 --- a/dao/src/test/resources/application-test.properties +++ b/dao/src/test/resources/application-test.properties @@ -21,6 +21,9 @@ caffeine.specs.deviceCredentials.maxSize=100000 caffeine.specs.devices.timeToLiveInMinutes=1440 caffeine.specs.devices.maxSize=100000 +caffeine.specs.assets.timeToLiveInMinutes=1440 +caffeine.specs.assets.maxSize=100000 + caching.specs.devices.timeToLiveInMinutes=1440 caching.specs.devices.maxSize=100000