00001 var assocIndexOf = require('./_assocIndexOf'); 00002 00013 function listCacheSet(key, value) { 00014 var data = this.__data__, 00015 index = assocIndexOf(data, key); 00016 00017 if (index < 0) { 00018 ++this.size; 00019 data.push([key, value]); 00020 } else { 00021 data[index][1] = value; 00022 } 00023 return this; 00024 } 00025 00026 module.exports = listCacheSet;