Open
Description
Hey! Seems like an example of a callback in async cache section is incorrect:
$cachedValue = $asyncCache->get('my_value', [CacheComputation::class, 'compute'])
It's not a valid callback as the compute
method is not static in the example:
class CacheComputation
{
public function compute(ItemInterface $item): string
{
...
}
}
Am I missing something or we should adjust the docs?
Metadata
Metadata
Assignees
Labels
No labels