Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
5eff5310
Commit
5eff5310
authored
Aug 24, 2013
by
Panagiotis Moustafellos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added timeoutms parameter in MemCache
parent
1072abb1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
MemCache.php
framework/yii/caching/MemCache.php
+1
-1
MemCacheServer.php
framework/yii/caching/MemCacheServer.php
+6
-1
No files found.
framework/yii/caching/MemCache.php
View file @
5eff5310
...
...
@@ -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
{
...
...
framework/yii/caching/MemCacheServer.php
View file @
5eff5310
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment