FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(redis): SET Save must keep existing TTL (KEEPTTL) · Issue #811 · QueryaHub/Querya-Desktop · GitHub

fix(redis): SET Save must keep existing TTL (KEEPTTL) #811

Description

Summary

RedisKeyEditor._saveString calls RedisConnection.set(key, text) with no ttlSeconds. SET key value without KEEPTTL or EX clears the expiry.

Session/cache keys (session:* with TTL 300s) become immortal after a value edit. The TTL badge still shows the old remaining time until Refresh.

Redis 6+ supports SET key value KEEPTTL. Fallback: TTL then SET … EX when TTL > 0. Do not SET when TTL is -2 (key gone).

Scope

  • lib/features/redis/redis_key_editor.dart _saveString
  • lib/core/database/redis_connection.dart set

Out of scope

  • Hash/list/set/zset mutations (they do not replace the key)

Activity

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

    backendBackend database driver execution and queriesbugSomething isn't workingstabilityTheme parser epic label: stability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL