getError(){
return this.error;
}
setValue = (key,data) =>{
this.error = null;
return new Promise(resolve =>{
connect.set(key, data,(err, reply) =>{
this.error = err;
resolve(reply);
});
});
};