* @author Louis Lapointe * @link http://pmo.developpez.com/ * @since PhpMyObject v0.1 * @version $Revision: $ * @copyright Copyright (C) 2007-2008 Nicolas Boiteux * @copyright Copyright (C) 2008 Louis Lapointe * @license GPLv3 {@link http://www.gnu.org/licenses/gpl} * @filesource * * @deprecated It is not PMO's job to take care of optimizing * the server. This file will be deleted in v0.2.x. */ /** * This interface defines the methods a class must implement * to provide a working MemCache class. * * @package PhpMyObject * @subpackage PMO_Core * @see PMO_MyMemCache */ interface PMO_MemCache{ /** * connects to the memcache server * * connect() uses the configuration information from * your_config.php */ public function connect(); /** * closes the connection to the memcache server */ public function close(); /** * retrieve a PMO_Object into the memcache * * @return PMO_Object */ public function get(PMO_Object $object); /** * replaces an existing object in the memcache */ public function replace(PMO_Object $object); /** * inserts a new PMO_Object into the memcache */ public function set($key, PMO_Object $object); /** * deletes an existing PMO_Object from the memcache server */ public function delete(PMO_Object $object); public function flush(); } ?>