add Redis cache and some clean up

- update and cleanup in README.md
- update getIdentity to throw response exception with 401 in JwtService
- update http files to use identity from env
- add cacheable to getIdentityFromDevice in DeviceRegistryService
- add RedisCacheConfiguration
- add CacheProperty
- set up cache property
- set up data redis cache
This commit is contained in:
2024-12-24 05:50:56 +01:00
parent 19f46bd01f
commit 6522809dce
14 changed files with 153 additions and 62 deletions

View File

@@ -9,6 +9,12 @@ spring:
os:
name: "%APP_BUILD_OS_NAME%"
version: "%APP_BUILD_OS_VERSION%"
cache:
type: redis
data:
redis:
port: 6379
database: 1
management:
endpoints:
@@ -29,6 +35,9 @@ management:
bucket: hlaeja
org: hlaeja_ltd
cache:
time-to-live: 10
jwt:
public-key: cert/public_key.pem
@@ -40,6 +49,9 @@ spring:
config:
activate:
on-profile: development
data:
redis:
host: localhost
management:
metrics:
@@ -76,6 +88,9 @@ spring:
config:
activate:
on-profile: docker
data:
redis:
host: Redis
management:
metrics: