React on expire events
React on expire events

A session -> userid mapping may be terminated by two events:
a) User logs out
b) Session is invalidated by time

Setting the TTL of the sessionid key to the session invalidation time
(and updating that accordingly) may be used to get expired events for
the second case.

yunity/yunity-sockets