Timeline for LRU Cache in ECMAScript
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 19, 2021 at 16:11 | vote | accept | s1lv3r | ||
Sep 6, 2015 at 7:56 | comment | added | s1lv3r |
First, thank you for your answer and all the helpfull recommendations. Regarding I'm not sure why you want to add the key-value pair as a property of the cache object. - I'm sorry I haven't been more clear about it up front, but this is actually a requirement and of course you are right, that seems to be the part, which make the task somewhat challenging for me.
|
|
Sep 6, 2015 at 1:16 | comment | added | Flambino | Cool, that looks more like it. Glad I saw your answer when I was only a few words into writing mine; I was going to say all the same stuff :) | |
Sep 6, 2015 at 1:14 | history | edited | Joseph | CC BY-SA 3.0 |
deleted 5 characters in body
|
Sep 6, 2015 at 1:13 | comment | added | Joseph | @Flambino Updated. Was editing along the way (and still reviewing my answer) :D | |
Sep 6, 2015 at 1:12 | comment | added | Flambino |
In your 2nd version, your functions are still trying to access this._accessMap , this._capacity , and so forth, though they're no longer instance properties, but merely closure variables
|
|
Sep 6, 2015 at 1:10 | history | edited | Joseph | CC BY-SA 3.0 |
added 51 characters in body
|
Sep 6, 2015 at 1:03 | history | edited | Joseph | CC BY-SA 3.0 |
added 51 characters in body
|
Sep 6, 2015 at 0:58 | history | answered | Joseph | CC BY-SA 3.0 |