Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
13.3. The Memcached Interface Connector
The following enables a Memcached server using the
memcached socket binding, and exposes the memcachedCache cache declared in the local container, using defaults for all other settings.
<memcached-connector socket-binding="memcached" cache-container="local"/>
<memcached-connector socket-binding="memcached"
cache-container="local"/>
Due to the limitations in the Memcached protocol, only one cache can be exposed by a connector. To expose more than one cache, declare additional memcached-connectors on different socket-bindings. See Section 13.3.1, “Configure Memcached Connectors”.
13.3.1. Configure Memcached Connectors Link kopierenLink in die Zwischenablage kopiert!
Link kopierenLink in die Zwischenablage kopiert!
The following procedure describes the attributes used to configure the memcached connector within the
connectors element in Red Hat JBoss Data Grid's Remote Client-Server Mode.
Procedure 13.1. Configuring the Memcached Connector in Remote Client-Server Mode
The
memcached-connector element defines the configuration elements for use with memcached.
- The
socket-bindingparameter specifies the socket binding port used by the memcached connector. This is a mandatory parameter. - The
cache-containerparameter names the cache container used by the memcached connector. This is a mandatory parameter. - The
worker-threadsparameter specifies the number of worker threads available for the memcached connector. The default value for this parameter is 160. This is an optional parameter. - The
idle-timeoutparameter specifies the time (in milliseconds) the connector can remain idle before the connection times out. The default value for this parameter is-1, which means that no timeout period is set. This is an optional parameter. - The
tcp-nodelayparameter specifies whether TCP packets will be delayed and sent out in batches. Valid values for this parameter aretrueandfalse. The default value for this parameter istrue. This is an optional parameter. - The
send-buffer-sizeparameter indicates the size of the send buffer for the memcached connector. The default value for this parameter is the size of the TCP stack buffer. This is an optional parameter. - The
receive-buffer-sizeparameter indicates the size of the receive buffer for the memcached connector. The default value for this parameter is the size of the TCP stack buffer. This is an optional parameter.