NodeCache override key

node v6.17.1
version: 1.0.0
endpointsharetweet
const NodeCache = require( "node-cache" ); const myCache = new NodeCache(); // set a key myCache.set("name", "erdii"); console.log(myCache.get("name")); // prints 'erdii' // now we set the same key again myCache.set("name", "mpneuried"); console.log(myCache.get("name")); // prints 'mpneuried'
Loading…

no comments

    sign in to comment