Added timeoutms parameter in MemCache

parent 1072abb1
......@@ -94,7 +94,7 @@ class MemCache extends Cache
$cache->addServer($server->host, $server->port, $server->weight);
} else {
$cache->addServer($server->host, $server->port, $server->persistent,
$server->weight, $server->timeout, $server->retryInterval, $server->status);
$server->weight, $server->timeout, $server->retryInterval, $server->status, null, $server->timemoutms);
}
}
} else {
......
......@@ -37,7 +37,7 @@ class MemCacheServer extends \yii\base\Object
/**
* @var integer value in seconds which will be used for connecting to the server. This is used by memcache only.
*/
public $timeout = 15;
public $timeout = 2;
/**
* @var integer how often a failed server will be retried (in seconds). This is used by memcache only.
*/
......@@ -46,4 +46,9 @@ class MemCacheServer extends \yii\base\Object
* @var boolean if the server should be flagged as online upon a failure. This is used by memcache only.
*/
public $status = true;
/**
* @var integer value in milliseconds which will be used for connecting to the server. Takes precedence over timeout
*/
public $timemoutms = 2000;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment