diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-20 19:19:55 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-20 19:19:55 +0100 |
commit | d45b5615d48bff5373a6cda0728cb26332c3d962 (patch) | |
tree | 85f6e6d62317a66daa62745347a7636b1ca49546 /framework/Caching/TCacheDependency.php | |
parent | 7b843cc7df910a218272f328293f2541d53c23b2 (diff) |
One class per file: framework/Caching/
Diffstat (limited to 'framework/Caching/TCacheDependency.php')
-rw-r--r-- | framework/Caching/TCacheDependency.php | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/framework/Caching/TCacheDependency.php b/framework/Caching/TCacheDependency.php new file mode 100644 index 00000000..269bedf2 --- /dev/null +++ b/framework/Caching/TCacheDependency.php @@ -0,0 +1,43 @@ +<?php +/** + * TCache and cache dependency classes. + * + * @author Qiang Xue <qiang.xue@gmail.com> + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2014 PradoSoft + * @license http://www.pradosoft.com/license/ + * @package System.Caching + */ + + +/** + * TCacheDependency class. + * + * TCacheDependency is the base class implementing {@link ICacheDependency} interface. + * Descendant classes must implement {@link getHasChanged()} to provide + * actual dependency checking logic. + * + * The property value of {@link getHasChanged HasChanged} tells whether + * the dependency is changed or not. + * + * You may disable the dependency checking by setting {@link setEnabled Enabled} + * to false. + * + * Note, since the dependency objects often need to be serialized so that + * they can persist across requests, you may need to implement __sleep() and + * __wakeup() if the dependency objects contain resource handles which are + * not serializable. + * + * Currently, the following dependency classes are provided in the PRADO release: + * - {@link TFileCacheDependency}: checks whether a file is changed or not + * - {@link TDirectoryCacheDependency}: checks whether a directory is changed or not + * - {@link TGlobalStateCacheDependency}: checks whether a global state is changed or not + * - {@link TChainedCacheDependency}: checks whether any of a list of dependencies is changed or not + * + * @author Qiang Xue <qiang.xue@gmail.com> + * @package System.Caching + * @since 3.1.0 + */ +abstract class TCacheDependency extends TComponent implements ICacheDependency +{ +}
\ No newline at end of file |