Skip to content

optionally_try_get_with in moka::future::Cache #254

@dcullen12

Description

@dcullen12

I have a use case where the value being fetched through the cache may or may not exist. If it exists, the fetch may fail. Therefor I would like to be able to use some combination of optionally_get_with and try_get_with that would return Option<Result<V>>, and only caches type V if the future returns Some(Ok(V)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions