Details
-
Improvement
-
Resolution: Won't Fix
-
Major
-
None
-
None
-
Security Level: Public
-
None
Description
This request came from the SDK team. As of 2.0 we did not want to make this capability public due to the complexity. Post-2.0 engineering agreed to look at this as a possible enhancement, and provide an easier way to configure maximum expiration and default expiration for get-and-lock operations on Server-side.
> If no expiration time is set then the default expiration is 15 seconds. getl
> also has a maximum expiration time of 29 seconds so any expiration time
> greater than 29 seconds is automatically changed to 29 seconds.
The link above shows getLocked() function and here is the code snippet
if (lockTimeout > max_timeout || lockTimeout < 1)
{ ... lockTimeout = default_timeout; }
The snippet shows that:
1) default and maximum values looks like configurable
2) it will always reset to default value, for both unspecified and exceeding expiration time
Therefore it would be nice to read here how to configure default and maximum timeout
This note is also filed as disqus comment here (it could be removed after fix): http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-architecture-apis-memcached-protocol-additions.html#comment-541070264