Skip to content

Add cache limits #258

@baumgold

Description

@baumgold

Is your feature request related to a problem? Please describe.
Currently the size of the cache directory can grow unbounded. This can cause problems (e.g. disk full) and require manual intervention (e.g. manually deleting the entire cache directory).

Describe the solution you'd like
Add size/age limits to the cache directory and the ability for users to enforce those limits by deleting the least recently used data with a function call. Similar to the "reduce_size" function in joblib.memory (link).

Describe alternatives you've considered
A cron job to automatically remove the entire cache direction is a hack and seems like overkill.

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions