6.0.0-alpha14
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/1/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#13085] Use memcache instead of distributed hashtable in $conf[cache][driver]
*
Your Email Address
*
Spam protection
Enter the letters below:
\ /.__ .___ ..__ >< | \[__ |[__) / \|__/| \__||
Comment
>> It depends. Only when a lifetime value of '0' is passed does this >> mean that it is never marked for GC. If it is omitted (therefore >> passing a null), it is marked for GC based on the configured default >> GC lifetime. > > It is probably due to my limited command of the PHP language, but I > assumed that the below function would set $lifetime to '0' if the > parameter is not passed (similar to C++): > > public function set($key, $data, $lifetime = 0) > { > $key = $this->_params['prefix'] . $key; > > if ($this->_memcache->set($key . '_e', time(), $lifetime) !== > false) { > $this->_memcache->set($key, $data, $lifetime); > } > } > > Apparently I am wrong here, but in that case I wonder why it would be > needed to set a default at all.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers