Skip to content

Newly added CacheInterface::get() method does not expose the lifetime in case of item recomputation #27732

@pounard

Description

@pounard

llowing issue #27604 where @nicolas-grekas, I have a tiny question: since that #27604 introduces it in documentation saying:

added CacheInterface, which provides stampede protection via probabilistic early expiration and should become the preferred way to use a cache

I'm OK with using it, but since I can't expose any lifetime, default will be infinite or whatever the adapter decides for all caches that are set using this method.

Is there a reason for that ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions