Skip to content

Feature Request: Support Cleanup of Cache at X% Full #74

Open
@MattMencel

Description

@MattMencel

Is it possible to add a new environment variable such that if the filesystem storage reaches a certain percent used, it would expire the oldest cache items?

CLEANUP_FILESYSTEM_PERCENT

  1. Prepare to save a cache
  2. Check the storage percentage used
  3. If above CLEANUP_FILESYSTEM_PERCENT purge the oldest item in the cache.
  4. Save the new cache item

I could see this working separately or in parallel with CLEANUP_OLDER_THAN_DAYS.

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