me.geso.avans.session.HashMapSessionStore Maven / Gradle / Ivy
package me.geso.avans.session;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import lombok.ToString;
/**
* In memory hash session storage for testing/debugging.
*
* @author tokuhirom
*
*/
@ToString
public class HashMapSessionStore implements WebSessionStore {
private final Map> storage = new HashMap<>();
@Override
public void save(final String sessionId, final Map data) {
this.storage.put(sessionId, data);
}
@Override
public Optional