apcu_entry
PECL apcu >= 5.1.0
apcu_entry - Atomically fetch or generate a cache entry
Code Examples
Example #1 An apcu_entry example
Result: array(2) {
["fruit"]=>
array(2) {
[0]=>
string(6) "apples"
[1]=>
string(5) "pears"
}
["people"]=>
array(3) {
[0]=>
string(3) "bob"
[1]=>
string(3) "joe"
[2]=>
string(4) "niki"
}
}