Skip to content

Add expire-after-write to roles cache #30505

@tvernum

Description

@tvernum

The current role store cache has no automatic expiry except if full (which will rarely happen).

However that means that any inconsistencies that somehow find their way into the cache (through bugs, poorly timed node failures, etc) will persist until either

  1. the cache is manually cleared
  2. the node is restarted

it would be preferable to add a eviction time on this cache, even if it is measured in hours.

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