Skip to content

Memcache: Honor the expiry parameter in increment() and decrement() #116

Description

@javiermarinros

incrementInternal() accepts the documented $expiry argument but never uses it — MemcacheIncrementRequest has no expiration field — so any item created through the initial_value path is stored without an expiration and lives until evicted. Callers using increment() for rate limiting or short-lived counters accumulate immortal keys, and patterns that rely on expiry to self-heal (e.g. a worker counter that must reset after a crash) never recover.

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