Skip to content
This repository has been archived by the owner on Nov 27, 2021. It is now read-only.

Initial redisMap never stored to redis #4

Open
hannesstockner opened this issue Feb 18, 2013 · 0 comments
Open

Initial redisMap never stored to redis #4

hannesstockner opened this issue Feb 18, 2013 · 0 comments
Assignees

Comments

@hannesstockner
Copy link

hannesstockner commented Feb 18, 2013

Hello,

I am trying to integrate your library into my current system:

  • embedded jetty (8.1.8.v20121106)
  • jetty-session-redis (2.3.ga)
  • redis (2.6.4)

By restarting the server the RedisSessionManager.loadFromStore method always returns null, because redisData.get(0) == null.

I debugged through my app and I found out that the the initial redisMap is never stored to redis:
{accessed=1361208311937, attributes={}, context=, cookieSet=0, created=1361208311937, expiryTime=1361210111, id=1q8ks6b5lyze111qrn18ah95x9, lastAccessed=1361208311937, lastNode=null, lastSaved=1361208313748, maxIdle=1800, virtualHost=0.0.0.0}

The following redis command '"HMGET" "jetty-session-1q8ks6b5lyze111qrn18ah95x9" "id" "created" "accessed" "lastNode" "expiryTime" "lastSaved" "lastAccessed" "maxIdle" "cookieSet" "attributes"' returns:

  1. (nil)
  2. (nil)
  3. (nil)
  4. (nil)
  5. (nil)
  6. "1361208416819"
  7. (nil)
  8. (nil)
  9. (nil)
  10. "{"foo":"123"}"

Do I miss something?
Thanks for your help

Hannes

@ghost ghost assigned mathieucarbou Jul 29, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants