Hi Xiao,

I actually don't want to use a for loop as the values I"m inserting are
null and undefined but the values later on when retrieved will be 'null'
and 'undefined'. Therefore I can't share the existing vars (defined above).
Seems easier to hardcode the canned set test data then.

Thanks,
Suguna


On Fri, Apr 4, 2014 at 1:55 PM, Xiao Ma <notifications@github.com> wrote:

> In test/test_RedisConnection.js:
>
> > +    {key: tinyKey2, value: tinyVal}
> > +  ]
> > +
> > +  var itemsOn = [
> > +    {key: longKey2, value: longValOn},
> > +    {key: tinyKey2, value: tinyValOn}
> > +  ]
> > +
> > +  var testKeys = [longKey, tinyKey, longKey2, tinyKey2, nullKey, undefinedKey]
> > +  var testValuesOff = [longVal, tinyVal, longVal, tinyVal, nullVal, undefinedVal]
> > +  var testValuesOn = [longValOn, tinyValOn, longValOn, tinyValOn, nullVal, undefinedVal]
> > +  var testValues = compressionFlag == true && testValuesOn || testValuesOff
> > +
> > +  var populateSetterFuncs = function() {
> > +    var funcArray = []
> > +    funcArray[0] = cacheInstancePut.set(longKey, longVal, 100000)
>
> maybe just use a loop? These keys and values are already in arrays.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Medium/zcache/pull/58/files#r11313331>
> .
>