Skip to content

Question: Way to specify alternative lifetime for new entry in cached method? #238

@hcldan

Description

@hcldan

I have a cached async method that fetches some data. It's backed by a TimedSizedCache.
When running the method to get a new value to be cached, I have found that I may want to alter the lifetime of the entry I'm creating to something other than what the default lifetime of the cached entries are in the cache.

Is there a way to do this, and if not... any thoughts on how you think it might be possible with some work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions