Skip to content

Background session cleanup #577

@m4tx

Description

@m4tx

Problem statement

Currently, some of the session store implementations (such as the database store, file-based store) do not do any sort of cleanup for expired keys. This means the session keys will pile up over time and will never get deleted.

When we get a support for background job processing, we should add an automatically run jobs that will clean up expired session keys periodically.

The same thing probably also applies to the Cache.

Proposed solution

Provide a background job that will clean up expired keys periodically.

Alternatives considered

No response

Drawbacks

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-libCrate: cot (main library crate)enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions