com.lordofthejars.nosqlunit.demo.infinispan.UserManager Maven / Gradle / Ivy
package com.lordofthejars.nosqlunit.demo.infinispan;
import org.infinispan.api.BasicCache;
public class UserManager {
private BasicCache cache;
public UserManager(BasicCache cache) {
this.cache = cache;
}
public void addUser(User user) {
this.cache.put(user.getName(), user);
}
public User getUser(String name) {
return this.cache.get(name);
}
}