LRUCache.remove()

Remove the object associated with the specified key from the cache

Usage

Hover over inputs/exits for more info.

var LRUCache = require('machinepack-lrucache');


// Remove the object associated with the specified key from the cache

LRUCache.remove({

key: 'id',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

key required

The key used to store the obejct in the cache.

'id'

Exits

error

An unexpected error occurred.

success

OK.