nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit b47a47d9951f7b955e4f592d1adcc678f8b83fd7
parent 4c23ac75a8e4e6f485cea5848afc06fab5bd4bca
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Fri, 27 Jan 2017 01:39:30 +0300

Cache.get now returns dict with "found" member

Diffstat:
Msrc/lib/cache/index.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/cache/index.js b/src/lib/cache/index.js @@ -10,8 +10,9 @@ class Cache { const value = this._store[key]; delete this._store[key]; this._store[key] = value; - return value; + return {value, found: true}; } + return {found: false} } put(key, value) {