2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-06-27 15:23:11 +00:00
This commit is contained in:
2021-03-10 01:25:20 +03:00
parent ca2b89540a
commit a08519bde8
55 changed files with 4190 additions and 6679 deletions

View File

@ -34,12 +34,13 @@ export default class MemoryStore extends IStore
constructor()
{
super();
this.resources = [];
this.resources = new Map();
}
put(resource)
{
this.resources[resource.instance.id] = resource;
this.resources.set(resource.instance.id, resource);
return new AsyncReply(true);
}
retrive(id)