Skip to content

Add memoization to index #20

@AlexMikhalev

Description

@AlexMikhalev

it would be great to cache output for specific queries for specific roles. I had a good experience with memoize crate, but once data structures became complex, I could not apply it. Example of LRU with TTL 2 seconds https://github.com/dermesser/memoize/blob/84e37f773b91406946dc78eaae19e834e90bf426/examples/full_featured.rs#L14
For example this call:

as recommended by @mre

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions