Skip to content

Maybe add an autopurge? #7

@Timbus

Description

@Timbus

Hello! I've been using your module and think that I need the cache to delete its contents from time to time, because 'dead' objects start to accrue in a long running process.

A tiny looping fibre that just runs purge_stale+sleep is all I needed to add.. but it would be cool if you had it builtin to the module, possibly turned on/off with a flag.

Alternatively you could clean out old values every 'x' calls to set/get, similar to a memory garbage collector.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions