Skip to content

Extend ResourceCache for factory functions #972

Open
@DanRStevens

Description

@DanRStevens

Currently ResourceCache can only be used with constructors of the cached type. We should find a way to extend this to allow factory functions to be used instead. Really we want some function that takes a given fixed set of parameters, and returns the desired type, which can be added to the cache, and looked up using a parameter list tuple.

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