diff --git a/reference/memcache/memcache/delete.xml b/reference/memcache/memcache/delete.xml
index 3a81e84eaf..8c862892b2 100644
--- a/reference/memcache/memcache/delete.xml
+++ b/reference/memcache/memcache/delete.xml
@@ -11,15 +11,11 @@
boolMemcache::delete
stringkey
- inttimeout
+ inttimeout0
- Memcache::delete deletes item with the
- key. If parameter timeout
- is specified, the item will expire after
- timeout seconds.
- Also you can use memcache_delete function.
+ Memcache::delete deletes an item with the key.
@@ -40,9 +36,8 @@
timeout
- Execution time of the item. If it's equal to zero, the item will be
- deleted right away whereas if you set it to 30, the item will be
- deleted in 30 seconds.
+ This deprecated parameter is not supported, and defaults to 0 seconds.
+ Do not use this parameter.
@@ -50,6 +45,32 @@
+
+ &reftitle.changelog;
+
+
+
+
+ &Version;
+ &Description;
+
+
+
+
+ Unknown
+
+
+ It's not recommended to use the timeout parameter. The
+ behavior differs between memcached versions, but setting to 0
+ is safe. Other values for this deprecated feature may cause the memcache delete
+ to fail.
+
+
+
+
+
+
+
&reftitle.returnvalues;
@@ -69,14 +90,14 @@
/* procedural API */
$memcache_obj = memcache_connect('memcache_host', 11211);
-/* after 10 seconds item will be deleted by the server */
-memcache_delete($memcache_obj, 'key_to_delete', 10);
+/* item will be deleted by the server */
+memcache_delete($memcache_obj, 'key_to_delete');
/* OO API */
$memcache_obj = new Memcache;
$memcache_obj->connect('memcache_host', 11211);
-$memcache_obj->delete('key_to_delete', 10);
+$memcache_obj->delete('key_to_delete');
?>
]]>