Key Time Value Store was originally designed to work with Riak. In order to get all features, you will first need to set your database backend in app.config to levelDB, or another backend that support secondary indexes. See http://docs.basho.com/riak/latest/dev/using/2i/
To instantiate a Riak Key Time Value Store
RiakClient riakClient = new RiakClient(riakUrl);
Serializer serializer = new JacksonSerializer();
Deserializer deserializer = new JacksonDeserializer();
TimeProvider timeProvider = new SystemTimeProvider();
TimeFormatter timeFormatter = new AlphabeticallySortableTimeFormatter();
RiakKeyTimeValueStore(riakClient, serializer, deserializer, timeProvider, timeFormatter);
Spring users can use RiakKVTStoreConfiguration which will instantiante one for you reading riakUrl from kvtstore.properties. For more details see [Spring integration].