I'm pretty sure that ZPS4 is a dead product
authorChuck Hagenbuch <chuck@horde.org>
Mon, 14 Jun 2010 00:40:13 +0000 (20:40 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 14 Jun 2010 00:40:13 +0000 (20:40 -0400)
framework/Cache/lib/Horde/Cache/Zps4.php [deleted file]
framework/Cache/package.xml

diff --git a/framework/Cache/lib/Horde/Cache/Zps4.php b/framework/Cache/lib/Horde/Cache/Zps4.php
deleted file mode 100644 (file)
index f455be7..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-/**
- * The Horde_Cache_Zps4:: class provides a Zend Performance Suite
- * (version 4.0+) implementation of the Horde caching system.
- *
- * Copyright 1999-2010 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (LGPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
- *
- * @author   Chuck Hagenbuch <chuck@horde.org>
- * @category Horde
- * @package  Cache
- */
-class Horde_Cache_Zps4 extends Horde_Cache_Base
-{
-    /**
-     * Attempts to retrieve a piece of cached data and return it to the
-     * caller.
-     *
-     * @param string $key        Cache key to fetch.
-     * @param integer $lifetime  Lifetime of the key in seconds.
-     *
-     * @return mixed  Cached data, or false if none was found.
-     */
-    public function get($key, $lifetime = 1)
-    {
-        $key = $this->_params['prefix'] . $key;
-        return output_cache_get($key, $lifetime);
-    }
-
-    /**
-     * Attempts to store an object to the cache.
-     *
-     * @param string $key        Cache key (identifier).
-     * @param mixed $data        Data to store in the cache.
-     * @param integer $lifetime  Data lifetime. [Not used]
-     *
-     * @return boolean  True on success, false on failure.
-     */
-    public function set($key, $data, $lifetime = null)
-    {
-        $key = $this->_params['prefix'] . $key;
-        output_cache_put($key, $data);
-        return true;
-    }
-
-    /**
-     * Checks if a given key exists in the cache, valid for the given
-     * lifetime.
-     *
-     * @param string $key       Cache key to check.
-     * @param integer $lifetime  Lifetime of the key in seconds.
-     *
-     * @return boolean  Existence.
-     */
-    public function exists($key, $lifetime = 1)
-    {
-        $key = $this->_params['prefix'] . $key;
-        $exists = output_cache_exists($key, $lifetime);
-        output_cache_stop();
-        return $exists;
-    }
-
-    /**
-     * Expire any existing data for the given key.
-     *
-     * @param string $key  Cache key to expire.
-     *
-     * @return boolean  Success or failure.
-     */
-    public function expire($key)
-    {
-        $key = $this->_params['prefix'] . $key;
-        return output_cache_remove_key($key);
-    }
-
-}
index 78e63a0..a0561cb 100644 (file)
@@ -55,7 +55,6 @@ Performance Suite&apos;s content cache), memcached, or an SQL table.
       <file name="Sql.php" role="php" />
       <file name="Stack.php" role="php" />
       <file name="Xcache.php" role="php" />
-      <file name="Zps4.php" role="php" />
      </dir> <!-- /lib/Horde/Cache -->
      <file name="Cache.php" role="php" />
     </dir> <!-- /lib/Horde -->
@@ -113,7 +112,6 @@ Performance Suite&apos;s content cache), memcached, or an SQL table.
    <install name="lib/Horde/Cache/Sql.php" as="Horde/Cache/Sql.php" />
    <install name="lib/Horde/Cache/Stack.php" as="Horde/Cache/Stack.php" />
    <install name="lib/Horde/Cache/Xcache.php" as="Horde/Cache/Xcache.php" />
-   <install name="lib/Horde/Cache/Zps4.php" as="Horde/Cache/Zps4.php" />
    <install name="lib/Horde/Cache.php" as="Horde/Cache.php" />
   </filelist>
  </phprelease>