Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Async cache wrong callback example #20874

Open
@torchello

Description

@torchello

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp