summaryrefslogtreecommitdiff
path: root/framework/core.php
diff options
context:
space:
mode:
authorxue <>2006-01-05 05:35:55 +0000
committerxue <>2006-01-05 05:35:55 +0000
commit2d5b96ba9878ec36df7bb2af3493bb771c85b032 (patch)
tree0ebe72f5f7c3dc56d6a2c1a89b9d6820e3ecb1ce /framework/core.php
parentc4279b69ac0f2fa30fdd661083cb753965ae2850 (diff)
Diffstat (limited to 'framework/core.php')
-rw-r--r--framework/core.php72
1 files changed, 4 insertions, 68 deletions
diff --git a/framework/core.php b/framework/core.php
index b2ae1d45..08481d09 100644
--- a/framework/core.php
+++ b/framework/core.php
@@ -41,6 +41,10 @@ require_once(PRADO_DIR.'/Data/TXmlDocument.php');
* Includes THttpUtility definition
*/
require_once(PRADO_DIR.'/Web/THttpUtility.php');
+/**
+ * Includes TCache definition
+ */
+require_once(PRADO_DIR.'/Data/TCache.php');
require_once(PRADO_DIR.'/Log/ILog.php');
@@ -103,74 +107,6 @@ interface IService
}
/**
- * ICache interface.
- *
- * This interface must be implemented by cache managers.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @version $Revision: $ $Date: $
- * @package System
- * @since 3.0
- */
-interface ICache
-{
- /**
- * Retrieves a value from cache with a specified key.
- * @return mixed the value stored in cache, false if the value is not in the cache or expired.
- */
- public function get($id);
- /**
- * Stores a value identified by a key into cache.
- * If the cache already contains such a key, the existing value and
- * expiration time will be replaced with the new ones.
- *
- * @param string the key identifying the value to be cached
- * @param mixed the value to be cached
- * @param integer the expiration time of the value,
- * 0 means never expire,
- * a number less or equal than 60*60*24*30 means the number of seconds that the value will remain valid.
- * a number greater than 60 means a UNIX timestamp after which the value will expire.
- * @return boolean true if the value is successfully stored into cache, false otherwise
- */
- public function set($id,$value,$expire=0);
- /**
- * Stores a value identified by a key into cache if the cache does not contain this key.
- * Nothing will be done if the cache already contains the key.
- * @param string the key identifying the value to be cached
- * @param mixed the value to be cached
- * @param integer the expiration time of the value,
- * 0 means never expire,
- * a number less or equal than 60*60*24*30 means the number of seconds that the value will remain valid.
- * a number greater than 60 means a UNIX timestamp after which the value will expire.
- * @return boolean true if the value is successfully stored into cache, false otherwise
- */
- public function add($id,$value,$expire=0);
- /**
- * Stores a value identified by a key into cache only if the cache contains this key.
- * The existing value and expiration time will be overwritten with the new ones.
- * @param string the key identifying the value to be cached
- * @param mixed the value to be cached
- * @param integer the expiration time of the value,
- * 0 means never expire,
- * a number less or equal than 60*60*24*30 means the number of seconds that the value will remain valid.
- * a number greater than 60 means a UNIX timestamp after which the value will expire.
- * @return boolean true if the value is successfully stored into cache, false otherwise
- */
- public function replace($id,$value,$expire=0);
- /**
- * Deletes a value with the specified key from cache
- * @param string the key of the value to be deleted
- * @return boolean if no error happens during deletion
- */
- public function delete($id);
- /**
- * Deletes all values from cache.
- * Be careful of performing this operation if the cache is shared by multiple applications.
- */
- public function flush();
-}
-
-/**
* ITextWriter interface.
*
* This interface must be implemented by writers.