Annotation Interface EnableRedisServer


The EnableRedisServer annotation marks a Spring @Configuration annotated Class to embed the Redis service in this cluster member. The Redis service implements the Redis server protocol enabling Redis clients to connect to and inter-operate with Pivotal GemFire or Apache Geode. However, the embedded Pivotal GemFire/Apache Geode Redis Service can be enabled/disabled externally in application.properties by using the spring.data.gemfire.service.redis.enabled property even when this Annotation is present, thereby serving as a toggle.
Since:
1.9.0
Author:
John Blum
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Configures the Network bind-address on which the Redis server will accept connections.
    int
    Configures the Network port on which the Redis server will listen for Redis client connections.
  • Element Details

    • bindAddress

      String bindAddress
      Configures the Network bind-address on which the Redis server will accept connections. Defaults to localhost. Use the spring.data.gemfire.service.redis.bind-address property in application.properties.
      Default:
      ""
    • port

      int port
      Configures the Network port on which the Redis server will listen for Redis client connections. Defaults to 6379. Use the spring.data.gemfire.service.redis.port property in application.properties.
      Default:
      6379