How can I provide/configure my own implementation of SessionStore #4990
-
Micronaut provides an InMemory and Redis-based session storage. I want to provide a custom storage implementation. I wasn't able to find something useful in guides/docs. Please provide some insight is it possible and how. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It is just a matter of implementing the |
Beta Was this translation helpful? Give feedback.
It is just a matter of implementing the
io.micronaut.session.SessionStore
interface and defining the implementation as a bean. Here is another example written for Coherence https://github.com/micronaut-projects/micronaut-coherence/blob/master/coherence-session/src/main/java/io/micronaut/coherence/httpsession/CoherenceSessionStore.java