Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
groupId=ru.tinkoff.kora
koraVersion=1.1.16
koraVersion=1.1.17


##### GRADLE #####
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
my-cache {
maximumSize = 100000
maximumSize = 1000
}


Expand Down
4 changes: 3 additions & 1 deletion kora-java-cache-redis/src/main/resources/application.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
my-cache {
keyPrefix = "my"
keyPrefix = "my-"
expireAfterWrite = 10s
expireAfterWrite = ${?CACHE_EXPIRE_WRITE}
expireAfterAccess = 10s
expireAfterAccess = ${?CACHE_EXPIRE_READ}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void setup(@ConnectionPostgreSQL JdbcConnection connection) {
"POSTGRES_JDBC_URL", params.jdbcUrl(),
"POSTGRES_USER", params.username(),
"POSTGRES_PASS", params.password(),
"CACHE_EXPIRE_WRITE", "0s"));
"CACHE_MAX_SIZE", "0"));

container.start();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pet-cache {
maximumSize = 1000
maximumSize = ${?CACHE_MAX_SIZE}
expireAfterWrite = ${?CACHE_EXPIRE_WRITE}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
vet-cache {
maximumSize = 1000
maximumSize = ${?CACHE_MAX_SIZE}
expireAfterWrite = ${?CACHE_EXPIRE_WRITE}
}

Expand Down
4 changes: 4 additions & 0 deletions kora-java-crud/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ db {

pet-cache {
maximumSize = 1000
maximumSize = ${?CACHE_MAX_SIZE}
expireAfterWrite = ${?CACHE_EXPIRE_WRITE}
}

metrics {
opentelemetrySpec = "V123"
}

openapi {
management {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void setup(@ConnectionPostgreSQL JdbcConnection connection) {
"POSTGRES_JDBC_URL", params.jdbcUrl(),
"POSTGRES_USER", params.username(),
"POSTGRES_PASS", params.password(),
"CACHE_EXPIRE_WRITE", "0s"));
"CACHE_MAX_SIZE", "0"));

container.start();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ cassandra {
}

pet-cache {
maximumSize = 1000
expireAfterWrite = ${?CACHE_EXPIRE_WRITE}
keyPrefix = "pet-"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void setup(@ConnectionCassandra CassandraConnection cassandraConnection,
"REDIS_URL", paramsRedis.uri().toString(),
"REDIS_USER", paramsRedis.username(),
"REDIS_PASS", paramsRedis.password(),
"CACHE_EXPIRE_WRITE", "0s",
"CACHE_MAX_SIZE", "0",
"RETRY_ATTEMPTS", "0"));

container.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ db {

pet-cache {
maximumSize = 1000
maximumSize = ${?CACHE_MAX_SIZE}
expireAfterWrite = ${?CACHE_EXPIRE_WRITE}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void setup(@ConnectionPostgreSQL JdbcConnection connection) {
"POSTGRES_JDBC_URL", params.jdbcUrl(),
"POSTGRES_USER", params.username(),
"POSTGRES_PASS", params.password(),
"CACHE_EXPIRE_WRITE", "0s",
"CACHE_MAX_SIZE", "0",
"RETRY_ATTEMPTS", "0"));

container.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ db {

pet-cache {
maximumSize = 1000
maximumSize = ${?CACHE_MAX_SIZE}
expireAfterWrite = ${?CACHE_EXPIRE_WRITE}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void setup(@ConnectionPostgreSQL JdbcConnection connection) {
"r2dbc:postgresql://%s:%s/%s".formatted(params.host(), params.port(), params.database()),
"POSTGRES_USER", params.username(),
"POSTGRES_PASS", params.password(),
"CACHE_EXPIRE_WRITE", "0s",
"CACHE_MAX_SIZE", "0",
"RETRY_ATTEMPTS", "0"));

container.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ db {

pet-cache {
maximumSize = 1000
maximumSize = ${?CACHE_MAX_SIZE}
expireAfterWrite = ${?CACHE_EXPIRE_WRITE}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void setup(@ConnectionPostgreSQL JdbcConnection connection) {
"POSTGRES_VERTX_URL", "postgresql://%s:%s/%s".formatted(params.host(), params.port(), params.database()),
"POSTGRES_USER", params.username(),
"POSTGRES_PASS", params.password(),
"CACHE_EXPIRE_WRITE", "0s",
"CACHE_MAX_SIZE", "0",
"RETRY_ATTEMPTS", "0"));

container.start();
Expand Down
9 changes: 3 additions & 6 deletions kora-kotlin-crud/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ db {

pet-cache {
maximumSize = 1000
maximumSize = ${?CACHE_MAX_SIZE}
expireAfterWrite = ${?CACHE_EXPIRE_WRITE}
}

Expand All @@ -26,12 +27,8 @@ openapi {
management {
enabled = true
file = "openapi/http-server.yaml"
swaggerui {
enabled = true
}
rapidoc {
enabled = true
}
swaggerui.enabled = true
rapidoc.enabled = true
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class BlackBoxTests(@ConnectionPostgreSQL val connection: JdbcConnection) {
"POSTGRES_JDBC_URL" to params.jdbcUrl(),
"POSTGRES_USER" to params.username(),
"POSTGRES_PASS" to params.password(),
"CACHE_EXPIRE_WRITE" to "0s",
"CACHE_MAX_SIZE" to "0",
"RETRY_ATTEMPTS" to "0",
)
)
Expand Down
Loading