i don't think so, but closure-compiler does. zcache is next on my list.


On Thu, Mar 20, 2014 at 6:59 PM, Xiao Ma <notifications@github.com> wrote:

> In lib/MultiWriteCacheGroup.js:
>
> > +  promises.push(this._instance.mset(items, maxAgeMs))
> > +  items.forEach(function (item) {
> > +    appliedUrisByKey[item.key] = self._instance.getUrisByKey(item.key)
> > +  })
> > +
> > +  for (var i = 0; i < this._writeOnlyInstances.length; i++) {
> > +    var itemsToWrite = []
> > +    items.forEach(function (item) {
> > +      var key = item.key
> > +      var uris = self._writeOnlyInstances[i].getUrisByKey(key)
> > +      for (var j = 0; j < uris.length; j++) {
> > +        if (appliedUrisByKey[key].indexOf(uris[j]) < 0) {
> > +          // As long as we missed one uri (which is a server), we should mset
> > +          // the entire instance.
> > +          itemsToWrite.push(item)
> > +          appliedUrisByKey[key].concat(uris)
>
> Fixed.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Obvious/zcache/pull/44/files#r10821100>
> .
>