-
- Notifications
You must be signed in to change notification settings - Fork 5.3k
Open
Labels
Milestone
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?