MediaWiki
1.30.0
|
A MemoizedCallable subclass that stores function return values in an instance property rather than APC or APCu. More...
Protected Member Functions | |
fetchResult ( $key, &$success) | |
Fetch the result of a previous invocation from APC or APCu. More... | |
storeResult ( $key, $result) | |
Store the result of an invocation in APC or APCu. More... | |
Private Attributes | |
$cache = [] | |
Additional Inherited Members | |
Public Member Functions inherited from MemoizedCallable | |
__construct ( $callable, $ttl=3600) | |
invoke () | |
Invoke the memoized function or method. More... | |
invokeArgs (array $args=[]) | |
Invoke the memoized function or method. More... | |
Static Public Member Functions inherited from MemoizedCallable | |
static | call ( $callable, array $args=[], $ttl=3600) |
Shortcut method for creating a MemoizedCallable and invoking it with the specified arguments. More... | |
A MemoizedCallable subclass that stores function return values in an instance property rather than APC or APCu.
Definition at line 6 of file MemoizedCallableTest.php.
|
protected |
Fetch the result of a previous invocation from APC or APCu.
string | $key | |
bool | &$success |
Reimplemented from MemoizedCallable.
Definition at line 9 of file MemoizedCallableTest.php.
|
protected |
Store the result of an invocation in APC or APCu.
string | $key | |
mixed | $result |
Reimplemented from MemoizedCallable.
Definition at line 18 of file MemoizedCallableTest.php.
References cache.
|
private |
Definition at line 7 of file MemoizedCallableTest.php.