| 1 | <?php |
||
| 7 | class Memory implements Memoize |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The saved results |
||
| 11 | * |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | private $_cache = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * $cacheTime is ignored - this will keep the results around for the lifetime of this instance. |
||
| 18 | * |
||
| 19 | * @see Memoize::memoizeCallable |
||
| 20 | */ |
||
| 21 | public function memoizeCallable($key, $compute, $cacheTime = null) |
||
| 32 | } |
||
| 33 |