Cache.class.php (632B)
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 }