function(seneca, vkey, reply) {
    // New item

    var item = {
      key: vkey,
      val: 0,
      expires: settings.expires
    }

    seneca.act({ role: 'cache', cmd: 'set' }, item, function(err, result) {
      if (err) {
        ++stats.cache_errs
        return reply(err)
      }

      ++stats.vadd
      return reply()
    })
  }
function(seneca, vkey, reply) {
    

    var item = {
      key: vkey,
      val: 0,
      expires: settings.expires
    }

    seneca.act({ role: 'cache', cmd: 'set' }, item, function(err, result) {
      if (err) {
        ++stats.cache_errs
        return reply(err)
      }

      ++stats.vadd
      return reply()
    })
  }
function ( seneca , vkey , reply ) { // New item var item = { key : vkey , val : 0 , expires : settings . expires } seneca . act ( { role : 'cache' , cmd : 'set' } , item , function ( err , result ) { if ( err ) { ++ stats . cache_errs return reply ( err ) } ++ stats . vadd return reply ( ) } ) }
Cache write
Cache write