@@ -5,7 +5,7 @@ import io.ktor.server.application.*
5
5
import io.ktor.server.config.*
6
6
import io.ktor.server.engine.*
7
7
import io.ktor.server.netty.*
8
- import no.nav.syfo.application.cache.RedisStore
8
+ import no.nav.syfo.application.cache.ValkeyStore
9
9
import no.nav.syfo.personstatus.application.PersonoversiktStatusService
10
10
import no.nav.syfo.personstatus.api.v2.apiModule
11
11
import no.nav.syfo.personstatus.api.v2.auth.getWellKnown
@@ -46,23 +46,23 @@ fun main() {
46
46
wellKnownUrl = environment.azure.appWellKnownUrl,
47
47
)
48
48
49
- val redisConfig = environment.redisConfig
50
- val redisStore = RedisStore (
49
+ val valkeyConfig = environment.valkeyConfig
50
+ val valkeyStore = ValkeyStore (
51
51
JedisPool (
52
52
JedisPoolConfig (),
53
- HostAndPort (redisConfig .host, redisConfig .port),
53
+ HostAndPort (valkeyConfig .host, valkeyConfig .port),
54
54
DefaultJedisClientConfig .builder()
55
- .ssl(redisConfig .ssl)
56
- .user(redisConfig.redisUsername )
57
- .password(redisConfig.redisPassword )
58
- .database(redisConfig.redisDB )
55
+ .ssl(valkeyConfig .ssl)
56
+ .user(valkeyConfig.valkeyUsername )
57
+ .password(valkeyConfig.valkeyPassword )
58
+ .database(valkeyConfig.valkeyDB )
59
59
.build()
60
60
)
61
61
)
62
62
63
63
val azureAdClient = AzureAdClient (
64
64
azureEnvironment = environment.azure,
65
- redisStore = redisStore ,
65
+ valkeyStore = valkeyStore ,
66
66
)
67
67
68
68
val pdlClient = PdlClient (
@@ -173,7 +173,7 @@ fun main() {
173
173
applicationState = applicationState,
174
174
database = database,
175
175
environment = environment,
176
- redisStore = redisStore ,
176
+ valkeyStore = valkeyStore ,
177
177
azureAdClient = azureAdClient,
178
178
personBehandlendeEnhetService = personBehandlendeEnhetService,
179
179
personoversiktStatusService = personoversiktStatusService,
0 commit comments