Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Cache
Pool
Noop.php
Go to the documentation of this file.
1
<?php
2
namespace
Elgg\Cache\Pool
;
3
4
use
Elgg\Cache\Pool
;
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
}
Elgg\Cache\Pool\Noop\put
put($key, $value)
Definition:
Noop.php:32
Elgg\Cache\Pool\Noop\invalidate
invalidate($key)
Definition:
Noop.php:27
Elgg\Cache\Pool\Noop
Implements the caching API but doesn't actually do any caching.
Definition:
Noop.php:17
$value
$value
Definition:
longtext.php:42
$default
$default
Definition:
checkbox.php:34
$key
$key
Definition:
summary.php:34
Elgg\Cache\Pool
Definition:
Pool.php:19
use
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
Elgg\Cache\Pool
Definition:
InMemory.php:2
Generated on Sat Dec 21 2024 00:01:03 for Elgg by
1.8.11