se.gawell.fakeriak.buckets.InMemoryBucket Maven / Gradle / Ivy
The newest version!
package se.gawell.fakeriak.buckets;
import java.util.concurrent.ConcurrentHashMap;
public class InMemoryBucket implements Bucket {
private ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();
@Override
public void put(String key, String data) {
concurrentHashMap.put(key, data);
}
@Override
public String get(String key) {
return concurrentHashMap.get(key);
}
@Override
public void remove(String key) {
concurrentHashMap.remove(key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy