class RedisSessionRepository implements SessionRepository {

  @Override
  public boolean prepareRemove(SessionData session) {
    Long result = redis.hsetnx(sessionKey(session.getId()), INVALID_SESSION, BYTES_TRUE);
    return result.intValue() == 1;
  }

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

}