core: add new collection for shortcuts

This commit is contained in:
Abdullah Atta
2022-09-07 12:47:02 +05:00
parent ef552f8b38
commit 1e99d7732c
9 changed files with 251 additions and 1 deletions

View File

@@ -70,6 +70,10 @@ export default class CachedCollection extends IndexedCollection {
return this.map.has(id);
}
count() {
return this.map.size;
}
getItem(id) {
return this.map.get(id);
}