| 1234567891011121314151617181920212223242526272829303132 | 
							- <?php
 
- namespace Elgg\Cache;
 
- /**
 
-  * Implements the caching API but doesn't actually do any caching.
 
-  *
 
-  * Pass an instance of this class as a cache value to turn off caching.
 
-  *
 
-  * WARNING: API IN FLUX. DO NOT USE DIRECTLY.
 
-  *
 
-  * @package    Elgg
 
-  * @subpackage Cache
 
-  * @since      1.10.0
 
-  *
 
-  * @access private
 
-  */
 
- final class NullPool implements Pool {
 
- 	/** @inheritDoc */
 
- 	public function get($key, callable $callback) {
 
- 		return call_user_func($callback);
 
- 	}
 
- 	
 
- 	/** @inheritDoc */
 
- 	public function invalidate($key) {
 
- 		// values are always expired, so nothing to do
 
- 	}
 
- 	/** @inheritDoc */
 
- 	public function put($key, $value) {
 
- 		// values are always expired, so nothing to do
 
- 	}
 
- }
 
 
  |