I wanted to implement persistence with Redis and implemented a custom RedisStorage extending BaseStorage and overriding all of its methods.
However, persistence doesn't work. Doing some debugging I found that the RedisStorage's set() method only gets called once, which is at the first time something is saved to the $.userSession. How can I achieve that my set() method gets called every time I modify the $.userSession object?
Also the get() method doesn't seem to work the way I supposed. Given the following implementation:
I wanted to implement persistence with Redis and implemented a custom RedisStorage extending BaseStorage and overriding all of its methods. However, persistence doesn't work. Doing some debugging I found that the RedisStorage's set() method only gets called once, which is at the first time something is saved to the $.userSession. How can I achieve that my set() method gets called every time I modify the $.userSession object?
Also the get() method doesn't seem to work the way I supposed. Given the following implementation:
I'd suggest that I get back the updated data, but I don't - it's still the same outdated one as in the first request.
Probably I understood the whole $.userSession concept wrong, so please help me.