Elgg  Version 2.3
Noop.php
Go to the documentation of this file.
1 <?php
2 namespace Elgg\Cache\Pool;
3 
5 
17 final class Noop implements Pool {
19  public function get($key, callable $callback = null, $default = null) {
20  if (!$callback) {
21  return $default;
22  }
23  return call_user_func($callback);
24  }
25 
27  public function invalidate($key) {
28  // values are always expired, so nothing to do
29  }
30 
32  public function put($key, $value) {
33  // values are always expired, so nothing to do
34  }
35 }
put($key, $value)
Definition: Noop.php:32
invalidate($key)
Definition: Noop.php:27
Implements the caching API but doesn&#39;t actually do any caching.
Definition: Noop.php:17
$value
Definition: longtext.php:42
$default
Definition: checkbox.php:34
$key
Definition: summary.php:34
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
Definition: MIT-LICENSE.txt:5