const IO = require('io-square')
const db = require('redis')

IO.redis = {
  setClient (dbNum = 0, auth = false, password = null){
    if (auth !== true) {
      const c = db.createClient()
      c.select(dbNum, db.print)
      this.client = c
    } else {
      const c = db.createClient()
      c.auth(password, db.print)
      c.select(dbNum, db.print)
      this.client = c
    }
  },
  get (key) {
    return new IO(cb => {
      this.client.get(key, (err, reply)=>{
       cb(reply)
    })
  })
}
}

IO.redis.setClient(0, true, 'enterPasswordhere')

IO.redis.get('job')
  .then((val)=> {
    console.log(val)
  })

@@ -418,24 +418,16 @@
 IO(cb =%3E
- %7B%0A     
  this.cl
@@ -444,54 +444,55 @@
 ey, 
-(err, reply)=%3E%7B%0A       cb(reply)%0A    %7D
+cb))%0A                  .map((e,v) =%3E v
 )%0A  %7D
-)%0A%7D
+,%0A  
 %0A%7D%0A%0A
@@ -524,25 +524,23 @@
 e, '
-enterPasswordhere
+TESTpassWord123
 ')%0A%0A
@@ -557,12 +557,61 @@
 et('
-job'
+geekskool')%0A  .error(err =%3E console.log('error', err)
 )%0A  
@@ -617,19 +617,17 @@
  .then((
-val
+a
 )=%3E %7B%0A  
@@ -627,16 +627,42 @@
 =%3E %7B%0A   
+   console.log(a)%0A      //
  console

Add Barebones Functions