File modules/util/cache/Cache.class.php
Last commit: Tue Feb 23 22:59:12 2021 +0100 Jan Dankert New: Use a default value from a linked page.
1 <?php 2 3 namespace util\cache; 4 5 6 /** 7 * Cache. 8 */ 9 interface Cache 10 { 11 public function invalidateIfOlderThan($invalidateIfOlderDate); 12 13 /** 14 * Invalidates a cache entry. 15 */ 16 public function invalidate(); 17 18 /** 19 * Get the content. Loads the value if nessecary. 20 * @return string 21 */ 22 public function get(); 23 24 /** 25 * Loads the content. 26 * @return $this 27 */ 28 public function load(); 29 30 /** 31 * Refreshes the cache. 32 * @return $this 33 */ 34 public function refresh(); 35 36 /** 37 * Getting only the filename of the cache. 38 * @return string 39 */ 40 public function getFilename(); 41 }
Downloadmodules/util/cache/Cache.class.php
History Tue, 23 Feb 2021 22:59:12 +0100 Jan Dankert New: Use a default value from a linked page. Mon, 28 Sep 2020 21:07:21 +0200 Jan Dankert Cleanup: Removing unused code. Mon, 21 Sep 2020 22:48:59 +0200 Jan Dankert Complexe refactoring: Moving all generation logic from the model (Value,Page,File) to generators classes.