15 #ifdef _USE_VOLDEMORT_DB_
26 #include "voldemort/VersionedValue.h"
40 _factory = Poco::SharedPtr<Voldemort::SocketStoreClientFactory>(
new Voldemort::SocketStoreClientFactory(_config)) ;
49 _client = Poco::SharedPtr<Voldemort::StoreClient>( _factory->getStoreClient(
_dbName) );
56 _client->put(&key, &value);
57 }
catch(Voldemort::VoldemortException& e) {
66 const Voldemort::VersionedValue* value;
68 value = _client->get(&key);
71 std::cout <<
"Voldemort::VersionedValue Exception" <<
std::endl;
76 str = *((value)->getValue());
88 bool status = _client->deleteKey(&key);