UNPKG

huntsman

Version:

Super configurable async web spider

18 lines (15 loc) 365 B
module.exports = function( init ){ var memorystore = { store: ( 'object' === typeof init ) ? init : {}, get: function( key ){ return memorystore.store[ key ]; }, set: function( key, value ){ memorystore.store[ key ] = value; }, del: function( key ){ delete memorystore.store[ key ]; } }; return memorystore; };