Annotation Interface EnableMemcachedServer
@Target(TYPE)
@Retention(RUNTIME)
@Inherited
@Documented
@Import(MemcachedServerConfiguration.class)
@UsesGemFireProperties
public @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
Modifier and TypeClassDescriptionstatic enum
Valid values for the Memcached Network Protocol on-the-wire transport. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionint
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 portIf 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 toEnableMemcachedServer.MemcachedProtocol.ASCII
. Use the spring.data.gemfire.service.memcached.protocol property in application.properties.- Default:
- ASCII
-