8000 SORT … STORE onto a key with a TTL keeps the TTL; Redis clears it · Issue #201 · kividbio/kividb · GitHub
[go: up one dir, main page]

Skip to content

SORT … STORE onto a key with a TTL keeps the TTL; Redis clears it #201

Closed

Description

@murtazayusuf

SORT src ... STORE dst replaces dst's value but leaves its time to live in place. Redis treats the store as a new key and clears any TTL dst had.

SET dst x
EXPIRE dst 100
RPUSH src 3 1 2
SORT src STORE dst
TTL dst

Redis replies -1 to the last command. KiviDB replies the remaining seconds (about 100), so dst still expires.

This isn't new: 1.1.2 and current master behave the same way. Found while moving TTLs into the key's entry (the memory-per-key work). Expected: SORT ... STORE (and SORT_RO, which has no STORE, is unaffected) removes the destination's TTL, as Redis does.

Activity

  1. added
    bug
    on Oct 30, 2026
  2. agnarrarendelle commented on Oct 30, 2026

    @agnarrarendelle

    Hi, I'll handle this issue

  3. murtazayusuf commented on Oct 30, 2026

    @murtazayusuf
    ContributorAuthor

    @agnarrarendelle can you take #204 instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0