@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @Import(value=MemcachedServerConfiguration.class) @UsesGemFireProperties public @interface EnableMemcachedServer
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.Annotation
,
Import
,
MemcachedServerConfiguration
Modifier and Type | Optional Element and Description |
---|---|
int |
port
If specified and is non-zero, sets the port number for an embedded Gemcached server
and starts the Gemcached server.
|
EnableMemcachedServer.MemcachedProtocol |
protocol
Sets the protocol used by an embedded Gemcached server.
|
public abstract int port
public abstract EnableMemcachedServer.MemcachedProtocol protocol
EnableMemcachedServer.MemcachedProtocol.ASCII
.
Use the spring.data.gemfire.service.memcached.protocol property in application.properties.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.