Hi,
are there any plans to provide a more general access to NoSQL datastores than let's say by means of the RiakTemplate or GemfireTemplate?
I'd like to make the suggestion to introduce a common interface for at least key/value based datastores. Nearly every key/value based store provides basic methods for creation, reading and deleting entities that are identified by the key:
Code:public interface KeyValueTemplate<K, V> { void put(K key, V value); V get(K key); void remove(K key); }
The benefit would be a looser coupling from the client to a given datastore. The client will use only the interface to interact with the datastore:
and only the Spring app context will have knowledge of the datastore impl and its configuration.Code:@Autowired KeyValueTemplate template;
Any comments are welcome.
Cheers,
Tobias



Reply With Quote
