Memcached
Defines a connection to memcached. Utilizes gomemcache under the hood.
| Used by the memcached cache. |
Example
-
YAML
-
JSON
datastores:
- name: memcached
id: memcached-0
host: 127.0.0.1
port: 11211
{
"datastores": [
{
"name": "memcached",
"id": "memcached-0",
"host": "127.0.0.1",
"port": 11211
}
]
}
Configuration
| Parameter | Description | Type | Required | Default |
|---|---|---|---|---|
|
The unique identifier of the datastore used to reference this datastore elsewhere in configuration |
string |
Yes |
None |
|
The host of the memcached server. A convenience equivalent to supplying |
string |
No |
127.0.0.1 |
|
The port of the memcached server. A convenience equivalent to supplying |
int |
No |
11211 |
|
The list of servers to connect to supplied as an array of objects, each with a host and key parameter. This should only have a single entry when operating in standalone mode. If this is unspecified it uses the standalone |
Array of |
No |
host and port |