Annotation Interface EnableMemcachedServer


The EnableMemcachedServer annotation marks a Spring @Configuration annotated Class to start an embedded Memcached Server (Gemcached) service in this cluster member. The Gemcached service implements the Memcached Server protocol enabling Memcached clients to connect to and communicate with Pivotal GemFire or Apache Geode servers. However, the embedded Pivotal GemFire/Apache Geode Memcached Service can be enabled/disabled externally in application.properties by using the spring.data.gemfire.service.memcached.enabled property even when this Annotation is present, thereby serving as a toggle.
Since:
1.9.0
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Valid values for the Memcached Network Protocol on-the-wire transport.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    If specified and is non-zero, sets the port number for an embedded Gemcached server and starts the Gemcached server.
    Sets the protocol used by an embedded Gemcached server.
  • Element Details

    • port

      int port
      If specified and is non-zero, sets the port number for an embedded Gemcached server and starts the Gemcached server. Default to 11211. Use the spring.data.gemfire.service.memcached.port property in application.properties.
      Default:
      11211
    • protocol

      Sets the protocol used by an embedded Gemcached server. Valid values are BINARY and ASCII. If you omit this property, the ASCII protocol is used. Default to EnableMemcachedServer.MemcachedProtocol.ASCII. Use the spring.data.gemfire.service.memcached.protocol property in application.properties.
      Default:
      ASCII