class RedisSessionRepository implements SessionRepository {

  @Override
  public void storeSessionData(SessionData sessionData) {
    Map<byte[], byte[]> attributes = new HashMap<>();
    addInt(attributes, MAX_INACTIVE_INTERVAL, sessionData.getMaxInactiveInterval());
    addLong(attributes, LAST_ACCESSED, sessionData.getLastAccessedTime());
    addLong(attributes, CREATION_TIME, sessionData.getCreationTime());
    if (sessionManager.getConfiguration().isSticky()) {
      attributes.put(OWNER_NODE, ownerByteArray);
    }
    redis.hmset(sessionKey(sessionData.getId()), attributes);
    expirationManager.sessionTouched(sessionData);
  }

  public  RedisSessionRepository(RedisFacade redis, String namespace, String owner, ExpirationStrategy strategy,
      boolean sticky);

}