Skip to content

[RFC] Overhaul the cache API #237

@stof

Description

@stof

The library currently implements a Cache that can be used to speed up the compilation. But that implementation is quite limited as it forces a filesystem-based cache.

I suggest providing a pluggable cache API instead, where the underlying storage can be customized. We could keep shipping a filesystem-based implementation (the one we have today, basically) for people using the self-contained library so that they can have an implementation with no dependency. But I would suggest that we also provide an implementation which relies on a PSR-6 or PSR-16 cache, so that projects can plug whatever cache storage they want there.

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