Skip to content

When in-memory cache size < Redis cache size, cached items may remain resident after TTL expires #19

@cbigsby

Description

@cbigsby

@Ulriksen

Steps to reproduce:

  1. Set your in-memory cache's size to 1 MB and a default TTL of 5 minutes.
  2. Store a bunch of items in your cache so that they total >1 MB. The oldest ones will be evicted from your in-memory cache but will stay resident in Redis.
  3. Wait ~4 minutes.
  4. Request the oldest item again, which should pull it from Redis into your in-memory cache.

What should happen: The cached item's TTL should be ~1 minute in both Redis and in-memory.
What actually happens: The cached item's TTL is 5 minutes in-memory and ~1 minute in Redis.

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