php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56212 Small documentation bug
Submitted: 2004-10-11 15:07 UTC Modified: 2004-10-12 00:41 UTC
From: info at rhalff dot com Assigned: tony2001 (profile)
Status: Closed Package: memcache (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2004-10-11 15: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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-12 00:41 UTC] tony2001@php.net
Fixed, thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 03:01:28 2024 UTC