<?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.2 $ --> <refentry id="function.Memcache-delete"> <refnamediv> <refname>Memcache::delete</refname> <refpurpose>Delete item from the server</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>Memcache::delete</methodname> <methodparam><type>string</type><parameter>key</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam> </methodsynopsis> <para> <function>Memcache::delete</function> deletes item with the <parameter>key</parameter>. If parameter <parameter>timeout</parameter> is specified, the item will expire after <parameter>timeout</parameter> seconds. </para> <para> Also you can use <function>memcache_delete</function> function. See example below. </para> <example> <title><function>Memcache::delete</function> example</title> <programlisting role="php"> <![CDATA[ <?php /* procedural API */ $memcache_obj = memcache_connect('memcache_host', 11211); /* after 10 seconds item will be deleted by the server */ memcache_delete('key_to_delete', 10); /* OO API */ $memcache_obj = new Memcache; $memcache_obj->connect('memcache_host', 11211); $memcache_obj->delete('key_to_delete', 10); ?> ]]> </programlisting> </example> <para> &return.success; </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->