Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
Open
Labels
Milestone
Description
Hey! Seems like an example of a callback in async cachesection is incorrect:
$cachedValue =$asyncCache->get('my_value', [CacheComputation::class,'compute'])
It's not a valid callback as thecompute
method is not static in the example:
class CacheComputation{publicfunctioncompute(ItemInterface$item):string {... }}
Am I missing something or we should adjust the docs?