locache icon indicating copy to clipboard operation
locache copied to clipboard

I think line 266 should be: this.remove(key);

Open mohong opened this issue 6 years ago • 0 comments

https://github.com/d0ugal-archive/locache/blob/83787513bb4ee5be38f3e8d870a9cb71187ce09a/locache.js#L266

line 266 should be:

this.remove(key); 

because line 308:

LocacheCache.prototype.remove = function (key) {

        // If the storage backend isn't enabled perform a no-op.
        if (!this.storage.enabled()) {
            return;
        }

        var expireKey = this.expirekey(key);
        var valueKey = this.key(key);

        this.storage.remove(expireKey);
        this.storage.remove(valueKey);

    };

https://github.com/d0ugal-archive/locache/blob/83787513bb4ee5be38f3e8d870a9cb71187ce09a/locache.js#L308

mohong avatar Jun 07 '18 06:06 mohong