Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-7270

[RESP] EXPIRE with negative ttl persists the key instead of deleting it

XMLWordPrintable

      Setting negative seconds to the EXPIRE command should delete the key but Infinispan removes the TTL and keeps the key

      Infinsipan:

      127.0.0.1:11222> set foo bar ex 200
      OK
      127.0.0.1:11222> expire foo -10 lt
      (integer) 1
      127.0.0.1:11222> ttl foo
      (integer) -1
      127.0.0.1:11222> get foo
      "bar"
      

      Redis

      127.0.0.1:6379> set foo bar ex 200
      OK
      127.0.0.1:6379> expire foo -10 lt
      (integer) 1
      127.0.0.1:6379> ttl foo
      (integer) -2
      127.0.0.1:6379> get foo
      (nil)
      

            rh-ee-jbolina Jose Bolina
            rhn-support-pdrobek Pavel Drobek
            Pavel Drobek Pavel Drobek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: