1 | import listCacheClear from './_listCacheClear.js';
|
2 | import listCacheDelete from './_listCacheDelete.js';
|
3 | import listCacheGet from './_listCacheGet.js';
|
4 | import listCacheHas from './_listCacheHas.js';
|
5 | import listCacheSet from './_listCacheSet.js';
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | function ListCache(entries) {
|
15 | var index = -1,
|
16 | length = entries == null ? 0 : entries.length;
|
17 |
|
18 | this.clear();
|
19 | while (++index < length) {
|
20 | var entry = entries[index];
|
21 | this.set(entry[0], entry[1]);
|
22 | }
|
23 | }
|
24 |
|
25 |
|
26 | ListCache.prototype.clear = listCacheClear;
|
27 | ListCache.prototype['delete'] = listCacheDelete;
|
28 | ListCache.prototype.get = listCacheGet;
|
29 | ListCache.prototype.has = listCacheHas;
|
30 | ListCache.prototype.set = listCacheSet;
|
31 |
|
32 | export default ListCache;
|