PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Bug #2504

Small documentation bug

Details

#2504Small documentation bug
Submitted2004-10-11 19:07 UTC
Frominfo at rhalff dot com
Assignedtony2001
StatusClosed
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2004-10-11 19:07 UTC] info at rhalff dot com

Description:
------------
There is a small documentation bug at:

http://nl.php.net/manual/en/ref.memcache.php

It made me think the expiration didn't work.

$memcache->set('key', $tmp_object, 10) or die ("Failed to save data at the server");
echo "Store data in the cache (data will expire in 10 seconds)<br/>\n";

This should be something like:
$memcache->set('key', $tmp_object, 0, 10) or die ("Failed to save data at the server");
echo "Store data in the cache (data will expire in 10 seconds)<br/>\n";

Expected result:
----------------
Data stored in the cache for 10 seconds

Actual result:
--------------
Data stays in cache for a long time

[2004-10-12 04:41 UTC] tony2001 at php dot net

Fixed, thanks!