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

[RESP] EXPIRE - GT/LT are handled incorrectly if the TTL isn't set

XMLWordPrintable

      If the TTL isn't set then it's considered to be infinite:

      • Running EXPIRE with GT option shouldn't set up TTL
      • Running EXPIRE with LT option should set up TTL

      Infinispan:

      127.0.0.1:11222> set foo bar 
      OK
      127.0.0.1:11222> expire foo 200 gt
      (integer) 1
      127.0.0.1:11222> ttl foo
      (integer) 200
      

      Redis:

      127.0.0.1:6379> set foo bar
      OK
      127.0.0.1:6379> expire foo 200 gt
      (integer) 0
      127.0.0.1:6379> ttl foo
      (integer) -1
      

            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: