com.solidstategroup.bullettrain.InMemoryStore Maven / Gradle / Ivy
package com.solidstategroup.bullettrain;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* An implementation of inmemory store for caching feature flags states in memory.
*
* Created by Pavlo Maksymchuk.
*/
public class InMemoryStore implements CrudStore {
/**
* InMemory Feature Flag data
*/
private final Map data = new ConcurrentHashMap<>();
/**
* Default constructor.
*/
public InMemoryStore() {
}
public synchronized T create(Flag flag) {
return null;
}
public synchronized Flag read(String id) {
return null;
}
public synchronized Flag update(Flag flag) {
return null;
}
public synchronized void delete(String id) {
}
}