decord/source/732_listCacheSet.js

21 lines
452 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 732
2026-07-24 07:16:23 +00:00
// Function ID: 8769
2026-07-20 16:05:17 +00:00
// Name: listCacheSet
2026-07-23 10:11:24 +00:00
// Dependencies: [728]
2026-07-20 16:05:17 +00:00
// Module 732 (listCacheSet)
export default function listCacheSet(arg0, arg1) {
const self = this;
const __data__ = this.__data__;
2026-07-23 10:11:24 +00:00
const tmp = require(728) /* assocIndexOf */(__data__, arg0);
2026-07-20 16:05:17 +00:00
if (tmp < 0) {
self.size = self.size + 1;
const items = [arg0, arg1];
__data__.push(items);
} else {
__data__[tmp][1] = arg1;
}
return self;
};