diff --git a/helm/Chart.yaml b/helm/Chart.yaml
index 8cbcca11..7dbf191f 100644
--- a/helm/Chart.yaml
+++ b/helm/Chart.yaml
@@ -2,7 +2,7 @@ apiVersion: v2
name: pagopa-api-cache-chart
description: Microservice that handles calculation for pagoPA Advanced Fees Management
type: application
-version: 0.34.0
+version: 0.36.0
dependencies:
- name: microservice-chart
version: 3.0.0
@@ -40,4 +40,4 @@ dependencies:
version: 2.3.0
repository: "https://pagopa.github.io/aks-cron-chart-blueprint"
alias: refresh-oprod
-appVersion: 0.8.11
+appVersion: 0.8.11-2-NOD-742_cache_memory
diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml
index f817e76a..c5db02dc 100644
--- a/helm/values-dev.yaml
+++ b/helm/values-dev.yaml
@@ -2,7 +2,7 @@ microservice-chart: µservice-chart
namespace: "apiconfig"
image:
repository: ghcr.io/pagopa/pagopa-api-config-cache
- tag: 0.8.11
+ tag: 0.8.11-2-NOD-742_cache_memory
canaryDelivery:
deployment:
image:
diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml
index ae2921a4..05d4ff67 100644
--- a/helm/values-prod.yaml
+++ b/helm/values-prod.yaml
@@ -2,7 +2,7 @@ microservice-chart: µservice-chart
namespace: "apiconfig"
image:
repository: ghcr.io/pagopa/pagopa-api-config-cache
- tag: 0.8.11
+ tag: 0.8.11-2-NOD-742_cache_memory
canaryDelivery:
deployment:
image:
@@ -114,6 +114,10 @@ oracle:
envSecrets:
!!merge <<: *envSecret
DB_CONFIG_PASSWORD: "oracle-db-cfg-password"
+oracledev:
+ enabled: false
+oracleprod:
+ enabled: false
refresh-odev:
enabled: false
refresh-oprod:
@@ -236,3 +240,7 @@ refresh-o:
app.kubernetes.io/instance: "cache"
namespaces: ["apiconfig"]
topologyKey: topology.kubernetes.io/zone
+refresh-odev:
+ enabled: false
+refresh-oprod:
+ enabled: false
diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml
index 9d1059b3..cebac048 100644
--- a/helm/values-uat.yaml
+++ b/helm/values-uat.yaml
@@ -2,7 +2,7 @@ microservice-chart: µservice-chart
namespace: "apiconfig"
image:
repository: ghcr.io/pagopa/pagopa-api-config-cache
- tag: 0.8.11
+ tag: 0.8.11-2-NOD-742_cache_memory
canaryDelivery:
deployment:
image:
@@ -103,9 +103,9 @@ oracle:
envSecrets:
!!merge <<: *envSecret
DB_CONFIG_PASSWORD: "oracle-db-cfg-password-tmp"
-refresh-odev:
+oracledev:
enabled: false
-refresh-oprod:
+oracleprod:
enabled: false
refresh-p:
namespace: "apiconfig"
@@ -189,3 +189,7 @@ refresh-o:
operator: In
values:
- user
+refresh-odev:
+ enabled: false
+refresh-oprod:
+ enabled: false
diff --git a/openapi/openapi.json b/openapi/openapi.json
index e6b08a96..ec40fc21 100644
--- a/openapi/openapi.json
+++ b/openapi/openapi.json
@@ -4,7 +4,7 @@
"title": "API-Config Cache ${service}",
"description": "Generate cache for various microservices",
"termsOfService": "https://www.pagopa.gov.it/",
- "version": "0.8.11"
+ "version": "0.8.11-2-NOD-742_cache_memory"
},
"servers": [
{
diff --git a/openapi/openapi_fdrv1.json b/openapi/openapi_fdrv1.json
index f9da4610..b86ed0ab 100644
--- a/openapi/openapi_fdrv1.json
+++ b/openapi/openapi_fdrv1.json
@@ -4,7 +4,7 @@
"title": "API-Config Cache ${service}",
"description": "Generate cache for various microservices",
"termsOfService": "https://www.pagopa.gov.it/",
- "version": "0.8.11"
+ "version": "0.8.11-2-NOD-742_cache_memory"
},
"servers": [
{
@@ -50,9 +50,6 @@
}
],
"responses": {
- "401": {
- "description": "Unauthorized"
- },
"400": {
"description": "Bad Request",
"content": {
@@ -73,8 +70,8 @@
}
}
},
- "403": {
- "description": "Forbidden"
+ "401": {
+ "description": "Unauthorized"
},
"200": {
"description": "OK",
@@ -86,6 +83,9 @@
}
}
},
+ "403": {
+ "description": "Forbidden"
+ },
"429": {
"description": "Too many requests"
}
@@ -105,19 +105,6 @@
"summary": "Get last v1 {stakeholder} cache version",
"operationId": "idV1",
"responses": {
- "401": {
- "description": "Unauthorized"
- },
- "200": {
- "description": "OK",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/CacheVersion"
- }
- }
- }
- },
"400": {
"description": "Bad Request",
"content": {
@@ -138,6 +125,9 @@
}
}
},
+ "401": {
+ "description": "Unauthorized"
+ },
"403": {
"description": "Forbidden"
},
@@ -146,6 +136,16 @@
},
"429": {
"description": "Too many requests"
+ },
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CacheVersion"
+ }
+ }
+ }
}
},
"security": [
diff --git a/openapi/openapi_nodev1.json b/openapi/openapi_nodev1.json
index 15b6b6b4..66690182 100644
--- a/openapi/openapi_nodev1.json
+++ b/openapi/openapi_nodev1.json
@@ -4,7 +4,7 @@
"title": "API-Config Cache ${service}",
"description": "Generate cache for various microservices",
"termsOfService": "https://www.pagopa.gov.it/",
- "version": "0.8.11"
+ "version": "0.8.11-2-NOD-742_cache_memory"
},
"servers": [
{
@@ -50,9 +50,6 @@
}
],
"responses": {
- "401": {
- "description": "Unauthorized"
- },
"400": {
"description": "Bad Request",
"content": {
@@ -73,8 +70,8 @@
}
}
},
- "403": {
- "description": "Forbidden"
+ "401": {
+ "description": "Unauthorized"
},
"200": {
"description": "OK",
@@ -86,6 +83,9 @@
}
}
},
+ "403": {
+ "description": "Forbidden"
+ },
"429": {
"description": "Too many requests"
}
@@ -105,19 +105,6 @@
"summary": "Get last v1 {stakeholder} cache version",
"operationId": "idV1",
"responses": {
- "401": {
- "description": "Unauthorized"
- },
- "200": {
- "description": "OK",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/CacheVersion"
- }
- }
- }
- },
"400": {
"description": "Bad Request",
"content": {
@@ -138,6 +125,9 @@
}
}
},
+ "401": {
+ "description": "Unauthorized"
+ },
"403": {
"description": "Forbidden"
},
@@ -146,6 +136,16 @@
},
"429": {
"description": "Too many requests"
+ },
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CacheVersion"
+ }
+ }
+ }
}
},
"security": [
diff --git a/openapi/openapi_standinv1.json b/openapi/openapi_standinv1.json
index 2247f238..6f565002 100644
--- a/openapi/openapi_standinv1.json
+++ b/openapi/openapi_standinv1.json
@@ -4,7 +4,7 @@
"title": "API-Config Cache ${service}",
"description": "Generate cache for various microservices",
"termsOfService": "https://www.pagopa.gov.it/",
- "version": "0.8.11"
+ "version": "0.8.11-2-NOD-742_cache_memory"
},
"servers": [
{
@@ -50,9 +50,6 @@
}
],
"responses": {
- "401": {
- "description": "Unauthorized"
- },
"400": {
"description": "Bad Request",
"content": {
@@ -73,8 +70,8 @@
}
}
},
- "403": {
- "description": "Forbidden"
+ "401": {
+ "description": "Unauthorized"
},
"200": {
"description": "OK",
@@ -86,6 +83,9 @@
}
}
},
+ "403": {
+ "description": "Forbidden"
+ },
"429": {
"description": "Too many requests"
}
@@ -105,19 +105,6 @@
"summary": "Get last v1 {stakeholder} cache version",
"operationId": "idV1",
"responses": {
- "401": {
- "description": "Unauthorized"
- },
- "200": {
- "description": "OK",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/CacheVersion"
- }
- }
- }
- },
"400": {
"description": "Bad Request",
"content": {
@@ -138,6 +125,9 @@
}
}
},
+ "401": {
+ "description": "Unauthorized"
+ },
"403": {
"description": "Forbidden"
},
@@ -146,6 +136,16 @@
},
"429": {
"description": "Too many requests"
+ },
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CacheVersion"
+ }
+ }
+ }
}
},
"security": [
diff --git a/openapi/openapi_verifierv1.json b/openapi/openapi_verifierv1.json
index 651a2c13..891a1b14 100644
--- a/openapi/openapi_verifierv1.json
+++ b/openapi/openapi_verifierv1.json
@@ -4,7 +4,7 @@
"title": "API-Config Cache ${service}",
"description": "Generate cache for various microservices",
"termsOfService": "https://www.pagopa.gov.it/",
- "version": "0.8.11"
+ "version": "0.8.11-2-NOD-742_cache_memory"
},
"servers": [
{
@@ -38,21 +38,18 @@
"summary": "Get Creditor Institution list with Station v2",
"operationId": "cache",
"responses": {
- "401": {
- "description": "Unauthorized"
- },
- "200": {
- "description": "OK",
+ "400": {
+ "description": "Bad Request",
"content": {
"application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ProblemJson"
}
}
}
},
- "400": {
- "description": "Bad Request",
+ "500": {
+ "description": "Service unavailable",
"content": {
"application/json": {
"schema": {
@@ -61,12 +58,15 @@
}
}
},
- "500": {
- "description": "Service unavailable",
+ "401": {
+ "description": "Unauthorized"
+ },
+ "200": {
+ "description": "OK",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/ProblemJson"
+ "type": "string"
}
}
}
diff --git a/pom.xml b/pom.xml
index a13b9a25..12278afc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,7 +12,7 @@
it.gov.pagopa.api-config
cache
- 0.8.11
+ 0.8.11-2-NOD-742_cache_memory
API-Config Cache
Generate cache for various microservices
diff --git a/src/main/java/it/gov/pagopa/apiconfig/cache/config/RedisConfig.java b/src/main/java/it/gov/pagopa/apiconfig/cache/config/RedisConfig.java
index 01e9d2f2..50566240 100644
--- a/src/main/java/it/gov/pagopa/apiconfig/cache/config/RedisConfig.java
+++ b/src/main/java/it/gov/pagopa/apiconfig/cache/config/RedisConfig.java
@@ -3,7 +3,6 @@
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
-import it.gov.pagopa.apiconfig.cache.redis.ObjectRedisSerializer;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
@@ -12,11 +11,8 @@
import org.springframework.data.redis.connection.lettuce.LettuceClientConfiguration;
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
-import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
import org.springframework.data.redis.serializer.StringRedisSerializer;
-import java.util.Map;
-
@Configuration
public class RedisConfig {
@@ -46,27 +42,12 @@ public LettuceConnectionFactory redisConnectionFactory() {
return new LettuceConnectionFactory(redisConfiguration, lettuceConfig);
}
- @Bean
- @Qualifier("configData")
- public RedisTemplate> redisObjectTemplateConfigDataV1(
- final LettuceConnectionFactory connectionFactory, ObjectMapper objectMapper) {
- RedisTemplate> template = new RedisTemplate<>();
- template.setKeySerializer(new StringRedisSerializer());
- final var objectRedisSerializer = new ObjectRedisSerializer