Class InMemoryBackendConfiguration

java.lang.Object
am.ik.redis.adapter.boot.inmemory.InMemoryBackendConfiguration

@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(InMemoryBackendProperties.class) public class InMemoryBackendConfiguration extends Object
Declares the backend this server keeps its sessions in.

It is the whole of what a backend module wires up: the properties it is tuned with, and the one factory bean the server asks for a store per database. Everything else — the port, the lifecycle, the actuator — comes from the server module's auto-configuration and is the same whichever backend is underneath.

  • Constructor Details

    • InMemoryBackendConfiguration

      public InMemoryBackendConfiguration()
  • Method Details

    • inMemoryKeyValueStoreFactory

      @Bean public InMemoryKeyValueStoreFactory inMemoryKeyValueStoreFactory(InMemoryBackendProperties properties)
      Registers the in-memory backend.
      Parameters:
      properties - how the in-memory backend expires keys nobody touches
      Returns:
      the factory of this server's backend