GithubHelp home page GithubHelp logo

node-lru-addon's Introduction

node-lru-addon

Build Status

This is an implementation of a simple in-memory cache for node.js, supporting LRU (least-recently-used) eviction and TTL expirations.

It was developed as an alternative to the (excellent) node-lru-cache library for use with hashes with a very large number of items. V8 normally does a good job of optimizing the in-memory representation of objects, but it isn't optimized for an object that holds a huge amount of data. When you add a very large number of properties (particularly with non-integer keys) to an object, performance begins to suffer.

Rather than rely on V8 to figure out what we're trying to do, node-lru-native is a light wrapper around std::unordered_map from C++11. A std::list is used to track accesses so we can evict the least-recently-used item when necessary.

Based on the node-hashtable library by Issac Wagner.

Because original code is no longer maintained, I update this code and publish it as a new name lru-addon

Usage

Install via npm:

$ npm install lru-addon

Then:

var LRUCache = require('lru-addon');
var cache = new LRUCache({ maxElements: 1000 });
cache.set('some-key', 42);
var value = cache.get('some-key');

If you'd like to tinker, you can build the extension using node-gyp:

$ npm install -g node-gyp
$ node-gyp configure
$ node-gyp build

Benchmark

See benchmark folder for a extremly simple test. You can do it by yourself aslo.

Configuration

To configure the cache, you can pass a hash to the LRUCache constructor with the following options:

var cache = new LRUCache({

  // The maximum number of items to add to the cache before evicting the least-recently-used item.
  // Default: 0, meaning there is no maximum.
  maxElements: 10000,

  // The maximum age (in milliseconds) of an item.
  // The item will be removed if get() is called and the item is too old.
  // Default: 0, meaning items will never expire.
  maxAge: 60000,

  // The initial number of items for which space should be allocated.
  // The cache will resize dynamically if necessary.
  size: 1000,

  // The maximum load factor for buckets in the unordered_map.
  // Typically you won't need to change this.
  maxLoadFactor: 2.0

});

API

set(key, value)

Adds the specified item to the cache with the specified key.

get(key)

Returns the item with the specified key, or undefined if no item exists with that key.

remove(key)

Removes the item with the specified key if it exists.

keys([subkey])

Get all keys from cache. If subkey parameter is present, then it returns only keys that contain subkey.

clear()

Removes all items from the cache.

size()

Returns the number of items in the cache.

stats()

Returns a hash containing internal information about the cache.

Changelog

  • 1.0.4 -- Support Windows
  • 1.0.3 -- Support io.js 3.0
  • 1.0.0 -- Publish a new package
  • 0.4.0 -- Use nan to across node version
  • 0.3.0 -- Changed memory allocation strategy, fixed issue where remove() would do a seek through the LRU list, code cleanup
  • 0.2.0 -- Fixed issue where maxAge-based removal would result in a seek through the LRU list
  • 0.1.0 -- Initial release

node-lru-addon's People

Contributors

denghongcai avatar nkohari avatar skellla avatar skyblue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

node-lru-addon's Issues

Module not working

Example given in readme not working:

var LRUCache = require('lru-addon');
var cache = new LRUCache({ maxElements: 1000 });
cache.set('some-key', 42);
var value = cache.get('some-key');

Node version 6.8.1. The original implementation https://www.npmjs.com/package/lru-native working well.

Fails with error:

node index.js
(node) v8::ObjectTemplate::Set() with non-primitive values is deprecated
(node) and will stop working in the next major release.

==== JS stack trace =========================================

Security context: 0x26bb46cfb51 <JS Object>#0#
    1: .node [module.js:597] [pc=0x1b012b74be84] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,modul
e=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filename=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/build/Release/native.node>)
    2: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filenam
e=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/build/Release/native.node>)
    3: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filename=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/build/Release/native.node>)
    4: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0x1e90ed1614c1 <String[22]: ./build/Release/native>,parent=0xd9da66efb39 <a Module with m
ap 0x359f3151b801>#4#,isMain=0x26bb4604271 <false>)
    5: require [module.js:497] [pc=0x1b012b747c93] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,path
=0x1e90ed1614c1 <String[22]: ./build/Release/native>)
    6: require(aka require) [internal/module.js:20] [pc=0x1b012b7479c6] (this=0x26bb4604381 <undefined>,path=0x1e
90ed1614c1 <String[22]: ./build/Release/native>)
    7: /* anonymous */ [/home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js:1] [pc=0x1b012b74a73e] (this
=0xd9da66efbc1 <an Object with map 0x2649783075e9>#5#,exports=0xd9da66efbc1 <an Object with map 0x2649783075e9>#5
#,require=0xd9da66f1589 <JS Function require (SharedFunctionInfo 0x1e90ed15e5b1)>#6#,module=0xd9da66efb39 <a Modu
le with map 0x359f3151b801>#4#,__filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lr
u-addon/index.js>,__dirname=0xd9da66f14f1 <String[51]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon>)
    8: _compile [module.js:570] [pc=0x1b012b7470b0] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,con
tent=0xd9da66f0f69 <String[61]\: module.exports = require('./build/Release/native').LRUCache;\n>,filename=0xd9da6
6ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js>)
    9: .js [module.js:579] [pc=0x1b012b7400eb] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,module=
0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrut
est/node_modules/lru-addon/index.js>)
   10: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filenam
e=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js>)
   11: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/index.js>)
   12: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0x1e90ed15df49 <String[9]: lru-addon>,parent=0xd9da66e6129 <a Module with map 0x359f3151b
801>#7#,isMain=0x26bb4604271 <false>)
   13: require [module.js:497] [pc=0x1b012b747c93] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,path
=0x1e90ed15df49 <String[9]: lru-addon>)
   14: require(aka require) [internal/module.js:20] [pc=0x1b012b7479c6] (this=0x26bb4604381 <undefined>,path=0x1e
90ed15df49 <String[9]: lru-addon>)
   15: /* anonymous */ [/home/m03geek/dev/pg/lrutest/index.js:1] [pc=0x1b012b747382] (this=0xd9da66e6221 <an Obje
ct with map 0x2649783075e9>#8#,exports=0xd9da66e6221 <an Object with map 0x2649783075e9>#8#,require=0xd9da66e78c9
 <JS Function require (SharedFunctionInfo 0x1e90ed15e5b1)>#9#,module=0xd9da66e6129 <a Module with map 0x359f3151b
801>#7#,__filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>,__dirname=0xd9da66e77f1 <Str
ing[28]: /home/m03geek/dev/pg/lrutest>)
   16: _compile [module.js:570] [pc=0x1b012b7470b0] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,con
tent=0xd9da66e72b9 <String[147]\: var LRUCache = require('lru-addon');\nvar cache = new LRUCache({ maxElements: 1
000 });\ncache.set('some-key', 42);\nvar value = cache.get('some-key');>,filename=0xd9da66e3a01 <String[37]: /hom
e/m03geek/dev/pg/lrutest/index.js>)
   17: .js [module.js:579] [pc=0x1b012b7400eb] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,module=
0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrut
est/index.js>)
   18: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filenam
e=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>)
   19: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lr
utest/index.js>)
   20: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0xd9da66a2c11 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>,parent=0x26bb4604201 <n
ull>,isMain=0x26bb46043c1 <true>)
   21: /* anonymous */(aka /* anonymous */) [module.js:604] [pc=0x1b012b7339aa] (this=0x26bb4604381 <undefined>)
   22: run(aka run) [bootstrap_node.js:394] [pc=0x1b012b733830] (this=0x26bb4604381 <undefined>,entryFunction=0x1
e90ed151b51 <JS Function Module.runMain (SharedFunctionInfo 0x1e90ed12ce59)>#10#)
   23: startup(aka startup) [bootstrap_node.js:149] [pc=0x1b012b644932] (this=0x26bb4604381 <undefined>)
   24: /* anonymous */(aka /* anonymous */) [bootstrap_node.js:509] [pc=0x1b012b642759] (this=0x26bb4604201 <null
>,process=0x26bb46e1921 <a process with map 0x264978311619>#11#)
=====================


==== C stack trace ===============================

 1: v8::Template::Set(v8::Local<v8::Name>, v8::Local<v8::Data>, v8::PropertyAttribute)
 2: LRUCache::init(v8::Local<v8::Object>)
 3: node::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&)
 4: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))
 5: 0x755768
 6: 0x755e69
 7: 0x755fce
 8: 0x1b012b6092a7
(node) v8::ObjectTemplate::Set() with non-primitive values is deprecated
(node) and will stop working in the next major release.

==== JS stack trace =========================================

Security context: 0x26bb46cfb51 <JS Object>#0#
    1: .node [module.js:597] [pc=0x1b012b74be84] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,modul
e=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filename=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/build/Release/native.node>)
    2: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filenam
e=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/build/Release/native.node>)
    3: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filename=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/build/Release/native.node>)
    4: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0x1e90ed1614c1 <String[22]: ./build/Release/native>,parent=0xd9da66efb39 <a Module with m
ap 0x359f3151b801>#4#,isMain=0x26bb4604271 <false>)
    5: require [module.js:497] [pc=0x1b012b747c93] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,path
=0x1e90ed1614c1 <String[22]: ./build/Release/native>)
    6: require(aka require) [internal/module.js:20] [pc=0x1b012b7479c6] (this=0x26bb4604381 <undefined>,path=0x1e
90ed1614c1 <String[22]: ./build/Release/native>)
    7: /* anonymous */ [/home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js:1] [pc=0x1b012b74a73e] (this
=0xd9da66efbc1 <an Object with map 0x2649783075e9>#5#,exports=0xd9da66efbc1 <an Object with map 0x2649783075e9>#5
#,require=0xd9da66f1589 <JS Function require (SharedFunctionInfo 0x1e90ed15e5b1)>#6#,module=0xd9da66efb39 <a Modu
le with map 0x359f3151b801>#4#,__filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lr
u-addon/index.js>,__dirname=0xd9da66f14f1 <String[51]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon>)
    8: _compile [module.js:570] [pc=0x1b012b7470b0] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,con
tent=0xd9da66f0f69 <String[61]\: module.exports = require('./build/Release/native').LRUCache;\n>,filename=0xd9da6
6ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js>)
    9: .js [module.js:579] [pc=0x1b012b7400eb] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,module=
0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrut
est/node_modules/lru-addon/index.js>)
   10: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filenam
e=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js>)
   11: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/index.js>)
   12: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0x1e90ed15df49 <String[9]: lru-addon>,parent=0xd9da66e6129 <a Module with map 0x359f3151b
801>#7#,isMain=0x26bb4604271 <false>)
   13: require [module.js:497] [pc=0x1b012b747c93] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,path
=0x1e90ed15df49 <String[9]: lru-addon>)
   14: require(aka require) [internal/module.js:20] [pc=0x1b012b7479c6] (this=0x26bb4604381 <undefined>,path=0x1e
90ed15df49 <String[9]: lru-addon>)
   15: /* anonymous */ [/home/m03geek/dev/pg/lrutest/index.js:1] [pc=0x1b012b747382] (this=0xd9da66e6221 <an Obje
ct with map 0x2649783075e9>#8#,exports=0xd9da66e6221 <an Object with map 0x2649783075e9>#8#,require=0xd9da66e78c9
 <JS Function require (SharedFunctionInfo 0x1e90ed15e5b1)>#9#,module=0xd9da66e6129 <a Module with map 0x359f3151b
801>#7#,__filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>,__dirname=0xd9da66e77f1 <Str
ing[28]: /home/m03geek/dev/pg/lrutest>)
   16: _compile [module.js:570] [pc=0x1b012b7470b0] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,con
tent=0xd9da66e72b9 <String[147]\: var LRUCache = require('lru-addon');\nvar cache = new LRUCache({ maxElements: 1
000 });\ncache.set('some-key', 42);\nvar value = cache.get('some-key');>,filename=0xd9da66e3a01 <String[37]: /hom
e/m03geek/dev/pg/lrutest/index.js>)
   17: .js [module.js:579] [pc=0x1b012b7400eb] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,module=
0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrut
est/index.js>)
   18: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filenam
e=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>)
   19: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lr
utest/index.js>)
   20: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0xd9da66a2c11 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>,parent=0x26bb4604201 <n
ull>,isMain=0x26bb46043c1 <true>)
   21: /* anonymous */(aka /* anonymous */) [module.js:604] [pc=0x1b012b7339aa] (this=0x26bb4604381 <undefined>)
   22: run(aka run) [bootstrap_node.js:394] [pc=0x1b012b733830] (this=0x26bb4604381 <undefined>,entryFunction=0x1
e90ed151b51 <JS Function Module.runMain (SharedFunctionInfo 0x1e90ed12ce59)>#10#)
   23: startup(aka startup) [bootstrap_node.js:149] [pc=0x1b012b644932] (this=0x26bb4604381 <undefined>)
   24: /* anonymous */(aka /* anonymous */) [bootstrap_node.js:509] [pc=0x1b012b642759] (this=0x26bb4604201 <null
>,process=0x26bb46e1921 <a process with map 0x264978311619>#11#)
=====================


==== C stack trace ===============================

 1: v8::Template::Set(v8::Local<v8::Name>, v8::Local<v8::Data>, v8::PropertyAttribute)
 2: LRUCache::init(v8::Local<v8::Object>)
 3: node::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&)
 4: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))
 5: 0x755768
 6: 0x755e69
 7: 0x755fce
 8: 0x1b012b6092a7
(node) v8::ObjectTemplate::Set() with non-primitive values is deprecated
(node) and will stop working in the next major release.

==== JS stack trace =========================================

Security context: 0x26bb46cfb51 <JS Object>#0#
    1: .node [module.js:597] [pc=0x1b012b74be84] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,modul
e=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filename=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/build/Release/native.node>)
    2: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filenam
e=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/build/Release/native.node>)
    3: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filename=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/build/Release/native.node>)
    4: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0x1e90ed1614c1 <String[22]: ./build/Release/native>,parent=0xd9da66efb39 <a Module with m
ap 0x359f3151b801>#4#,isMain=0x26bb4604271 <false>)
    5: require [module.js:497] [pc=0x1b012b747c93] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,path
=0x1e90ed1614c1 <String[22]: ./build/Release/native>)
    6: require(aka require) [internal/module.js:20] [pc=0x1b012b7479c6] (this=0x26bb4604381 <undefined>,path=0x1e
90ed1614c1 <String[22]: ./build/Release/native>)
    7: /* anonymous */ [/home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js:1] [pc=0x1b012b74a73e] (this
=0xd9da66efbc1 <an Object with map 0x2649783075e9>#5#,exports=0xd9da66efbc1 <an Object with map 0x2649783075e9>#5
#,require=0xd9da66f1589 <JS Function require (SharedFunctionInfo 0x1e90ed15e5b1)>#6#,module=0xd9da66efb39 <a Modu
le with map 0x359f3151b801>#4#,__filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lr
u-addon/index.js>,__dirname=0xd9da66f14f1 <String[51]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon>)
    8: _compile [module.js:570] [pc=0x1b012b7470b0] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,con
tent=0xd9da66f0f69 <String[61]\: module.exports = require('./build/Release/native').LRUCache;\n>,filename=0xd9da6
6ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js>)
    9: .js [module.js:579] [pc=0x1b012b7400eb] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,module=
0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrut
est/node_modules/lru-addon/index.js>)
   10: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filenam
e=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js>)
   11: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/index.js>)
   12: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0x1e90ed15df49 <String[9]: lru-addon>,parent=0xd9da66e6129 <a Module with map 0x359f3151b
801>#7#,isMain=0x26bb4604271 <false>)
   13: require [module.js:497] [pc=0x1b012b747c93] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,path
=0x1e90ed15df49 <String[9]: lru-addon>)
   14: require(aka require) [internal/module.js:20] [pc=0x1b012b7479c6] (this=0x26bb4604381 <undefined>,path=0x1e
90ed15df49 <String[9]: lru-addon>)
   15: /* anonymous */ [/home/m03geek/dev/pg/lrutest/index.js:1] [pc=0x1b012b747382] (this=0xd9da66e6221 <an Obje
ct with map 0x2649783075e9>#8#,exports=0xd9da66e6221 <an Object with map 0x2649783075e9>#8#,require=0xd9da66e78c9
 <JS Function require (SharedFunctionInfo 0x1e90ed15e5b1)>#9#,module=0xd9da66e6129 <a Module with map 0x359f3151b
801>#7#,__filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>,__dirname=0xd9da66e77f1 <Str
ing[28]: /home/m03geek/dev/pg/lrutest>)
   16: _compile [module.js:570] [pc=0x1b012b7470b0] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,con
tent=0xd9da66e72b9 <String[147]\: var LRUCache = require('lru-addon');\nvar cache = new LRUCache({ maxElements: 1
000 });\ncache.set('some-key', 42);\nvar value = cache.get('some-key');>,filename=0xd9da66e3a01 <String[37]: /hom
e/m03geek/dev/pg/lrutest/index.js>)
   17: .js [module.js:579] [pc=0x1b012b7400eb] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,module=
0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrut
est/index.js>)
   18: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filenam
e=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>)
   19: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lr
utest/index.js>)
   20: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0xd9da66a2c11 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>,parent=0x26bb4604201 <n
ull>,isMain=0x26bb46043c1 <true>)
   21: /* anonymous */(aka /* anonymous */) [module.js:604] [pc=0x1b012b7339aa] (this=0x26bb4604381 <undefined>)
   22: run(aka run) [bootstrap_node.js:394] [pc=0x1b012b733830] (this=0x26bb4604381 <undefined>,entryFunction=0x1
e90ed151b51 <JS Function Module.runMain (SharedFunctionInfo 0x1e90ed12ce59)>#10#)
   23: startup(aka startup) [bootstrap_node.js:149] [pc=0x1b012b644932] (this=0x26bb4604381 <undefined>)
   24: /* anonymous */(aka /* anonymous */) [bootstrap_node.js:509] [pc=0x1b012b642759] (this=0x26bb4604201 <null
>,process=0x26bb46e1921 <a process with map 0x264978311619>#11#)
=====================


==== C stack trace ===============================

 1: v8::Template::Set(v8::Local<v8::Name>, v8::Local<v8::Data>, v8::PropertyAttribute)
 2: LRUCache::init(v8::Local<v8::Object>)
 3: node::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&)
 4: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))
 5: 0x755768
 6: 0x755e69
 7: 0x755fce
 8: 0x1b012b6092a7
(node) v8::ObjectTemplate::Set() with non-primitive values is deprecated
(node) and will stop working in the next major release.

==== JS stack trace =========================================

Security context: 0x26bb46cfb51 <JS Object>#0#
    1: .node [module.js:597] [pc=0x1b012b74be84] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,modul
e=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filename=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/build/Release/native.node>)
    2: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filenam
e=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/build/Release/native.node>)
    3: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filename=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/build/Release/native.node>)
    4: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0x1e90ed1614c1 <String[22]: ./build/Release/native>,parent=0xd9da66efb39 <a Module with m
ap 0x359f3151b801>#4#,isMain=0x26bb4604271 <false>)
    5: require [module.js:497] [pc=0x1b012b747c93] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,path
=0x1e90ed1614c1 <String[22]: ./build/Release/native>)
    6: require(aka require) [internal/module.js:20] [pc=0x1b012b7479c6] (this=0x26bb4604381 <undefined>,path=0x1e
90ed1614c1 <String[22]: ./build/Release/native>)
    7: /* anonymous */ [/home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js:1] [pc=0x1b012b74a73e] (this
=0xd9da66efbc1 <an Object with map 0x2649783075e9>#5#,exports=0xd9da66efbc1 <an Object with map 0x2649783075e9>#5
#,require=0xd9da66f1589 <JS Function require (SharedFunctionInfo 0x1e90ed15e5b1)>#6#,module=0xd9da66efb39 <a Modu
le with map 0x359f3151b801>#4#,__filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lr
u-addon/index.js>,__dirname=0xd9da66f14f1 <String[51]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon>)
    8: _compile [module.js:570] [pc=0x1b012b7470b0] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,con
tent=0xd9da66f0f69 <String[61]\: module.exports = require('./build/Release/native').LRUCache;\n>,filename=0xd9da6
6ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js>)
    9: .js [module.js:579] [pc=0x1b012b7400eb] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,module=
0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrut
est/node_modules/lru-addon/index.js>)
   10: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filenam
e=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js>)
   11: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/index.js>)
   12: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0x1e90ed15df49 <String[9]: lru-addon>,parent=0xd9da66e6129 <a Module with map 0x359f3151b
801>#7#,isMain=0x26bb4604271 <false>)
   13: require [module.js:497] [pc=0x1b012b747c93] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,path
=0x1e90ed15df49 <String[9]: lru-addon>)
   14: require(aka require) [internal/module.js:20] [pc=0x1b012b7479c6] (this=0x26bb4604381 <undefined>,path=0x1e
90ed15df49 <String[9]: lru-addon>)
   15: /* anonymous */ [/home/m03geek/dev/pg/lrutest/index.js:1] [pc=0x1b012b747382] (this=0xd9da66e6221 <an Obje
ct with map 0x2649783075e9>#8#,exports=0xd9da66e6221 <an Object with map 0x2649783075e9>#8#,require=0xd9da66e78c9
 <JS Function require (SharedFunctionInfo 0x1e90ed15e5b1)>#9#,module=0xd9da66e6129 <a Module with map 0x359f3151b
801>#7#,__filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>,__dirname=0xd9da66e77f1 <Str
ing[28]: /home/m03geek/dev/pg/lrutest>)
   16: _compile [module.js:570] [pc=0x1b012b7470b0] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,con
tent=0xd9da66e72b9 <String[147]\: var LRUCache = require('lru-addon');\nvar cache = new LRUCache({ maxElements: 1
000 });\ncache.set('some-key', 42);\nvar value = cache.get('some-key');>,filename=0xd9da66e3a01 <String[37]: /hom
e/m03geek/dev/pg/lrutest/index.js>)
   17: .js [module.js:579] [pc=0x1b012b7400eb] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,module=
0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrut
est/index.js>)
   18: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filenam
e=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>)
   19: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lr
utest/index.js>)
   20: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0xd9da66a2c11 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>,parent=0x26bb4604201 <n
ull>,isMain=0x26bb46043c1 <true>)
   21: /* anonymous */(aka /* anonymous */) [module.js:604] [pc=0x1b012b7339aa] (this=0x26bb4604381 <undefined>)
   22: run(aka run) [bootstrap_node.js:394] [pc=0x1b012b733830] (this=0x26bb4604381 <undefined>,entryFunction=0x1
e90ed151b51 <JS Function Module.runMain (SharedFunctionInfo 0x1e90ed12ce59)>#10#)
   23: startup(aka startup) [bootstrap_node.js:149] [pc=0x1b012b644932] (this=0x26bb4604381 <undefined>)
   24: /* anonymous */(aka /* anonymous */) [bootstrap_node.js:509] [pc=0x1b012b642759] (this=0x26bb4604201 <null
>,process=0x26bb46e1921 <a process with map 0x264978311619>#11#)
=====================


==== C stack trace ===============================

 1: v8::Template::Set(v8::Local<v8::Name>, v8::Local<v8::Data>, v8::PropertyAttribute)
 2: LRUCache::init(v8::Local<v8::Object>)
 3: node::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&)
 4: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))
 5: 0x755768
 6: 0x755e69
 7: 0x755fce
 8: 0x1b012b6092a7
(node) v8::ObjectTemplate::Set() with non-primitive values is deprecated
(node) and will stop working in the next major release.

==== JS stack trace =========================================

Security context: 0x26bb46cfb51 <JS Object>#0#
    1: .node [module.js:597] [pc=0x1b012b74be84] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,modul
e=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filename=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/build/Release/native.node>)
    2: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filenam
e=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/build/Release/native.node>)
    3: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filename=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/build/Release/native.node>)
    4: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0x1e90ed1614c1 <String[22]: ./build/Release/native>,parent=0xd9da66efb39 <a Module with m
ap 0x359f3151b801>#4#,isMain=0x26bb4604271 <false>)
    5: require [module.js:497] [pc=0x1b012b747c93] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,path
=0x1e90ed1614c1 <String[22]: ./build/Release/native>)
    6: require(aka require) [internal/module.js:20] [pc=0x1b012b7479c6] (this=0x26bb4604381 <undefined>,path=0x1e
90ed1614c1 <String[22]: ./build/Release/native>)
    7: /* anonymous */ [/home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js:1] [pc=0x1b012b74a73e] (this
=0xd9da66efbc1 <an Object with map 0x2649783075e9>#5#,exports=0xd9da66efbc1 <an Object with map 0x2649783075e9>#5
#,require=0xd9da66f1589 <JS Function require (SharedFunctionInfo 0x1e90ed15e5b1)>#6#,module=0xd9da66efb39 <a Modu
le with map 0x359f3151b801>#4#,__filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lr
u-addon/index.js>,__dirname=0xd9da66f14f1 <String[51]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon>)
    8: _compile [module.js:570] [pc=0x1b012b7470b0] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,con
tent=0xd9da66f0f69 <String[61]\: module.exports = require('./build/Release/native').LRUCache;\n>,filename=0xd9da6
6ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js>)
    9: .js [module.js:579] [pc=0x1b012b7400eb] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,module=
0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrut
est/node_modules/lru-addon/index.js>)
   10: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filenam
e=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js>)
   11: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/index.js>)
   12: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0x1e90ed15df49 <String[9]: lru-addon>,parent=0xd9da66e6129 <a Module with map 0x359f3151b
801>#7#,isMain=0x26bb4604271 <false>)
   13: require [module.js:497] [pc=0x1b012b747c93] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,path
=0x1e90ed15df49 <String[9]: lru-addon>)
   14: require(aka require) [internal/module.js:20] [pc=0x1b012b7479c6] (this=0x26bb4604381 <undefined>,path=0x1e
90ed15df49 <String[9]: lru-addon>)
   15: /* anonymous */ [/home/m03geek/dev/pg/lrutest/index.js:1] [pc=0x1b012b747382] (this=0xd9da66e6221 <an Obje
ct with map 0x2649783075e9>#8#,exports=0xd9da66e6221 <an Object with map 0x2649783075e9>#8#,require=0xd9da66e78c9
 <JS Function require (SharedFunctionInfo 0x1e90ed15e5b1)>#9#,module=0xd9da66e6129 <a Module with map 0x359f3151b
801>#7#,__filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>,__dirname=0xd9da66e77f1 <Str
ing[28]: /home/m03geek/dev/pg/lrutest>)
   16: _compile [module.js:570] [pc=0x1b012b7470b0] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,con
tent=0xd9da66e72b9 <String[147]\: var LRUCache = require('lru-addon');\nvar cache = new LRUCache({ maxElements: 1
000 });\ncache.set('some-key', 42);\nvar value = cache.get('some-key');>,filename=0xd9da66e3a01 <String[37]: /hom
e/m03geek/dev/pg/lrutest/index.js>)
   17: .js [module.js:579] [pc=0x1b012b7400eb] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,module=
0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrut
est/index.js>)
   18: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filenam
e=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>)
   19: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lr
utest/index.js>)
   20: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0xd9da66a2c11 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>,parent=0x26bb4604201 <n
ull>,isMain=0x26bb46043c1 <true>)
   21: /* anonymous */(aka /* anonymous */) [module.js:604] [pc=0x1b012b7339aa] (this=0x26bb4604381 <undefined>)
   22: run(aka run) [bootstrap_node.js:394] [pc=0x1b012b733830] (this=0x26bb4604381 <undefined>,entryFunction=0x1
e90ed151b51 <JS Function Module.runMain (SharedFunctionInfo 0x1e90ed12ce59)>#10#)
   23: startup(aka startup) [bootstrap_node.js:149] [pc=0x1b012b644932] (this=0x26bb4604381 <undefined>)
   24: /* anonymous */(aka /* anonymous */) [bootstrap_node.js:509] [pc=0x1b012b642759] (this=0x26bb4604201 <null
>,process=0x26bb46e1921 <a process with map 0x264978311619>#11#)
=====================


==== C stack trace ===============================

 1: v8::Template::Set(v8::Local<v8::Name>, v8::Local<v8::Data>, v8::PropertyAttribute)
 2: LRUCache::init(v8::Local<v8::Object>)
 3: node::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&)
 4: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))
 5: 0x755768
 6: 0x755e69
 7: 0x755fce
 8: 0x1b012b6092a7
(node) v8::ObjectTemplate::Set() with non-primitive values is deprecated
(node) and will stop working in the next major release.

==== JS stack trace =========================================

Security context: 0x26bb46cfb51 <JS Object>#0#
    1: .node [module.js:597] [pc=0x1b012b74be84] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,modul
e=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filename=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/build/Release/native.node>)
    2: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filenam
e=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/build/Release/native.node>)
    3: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66f5ff1 <a Module with map 0x359f3151b801>#2#,filename=0xd9da66f3541 <String[77]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/build/Release/native.node>)
    4: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0x1e90ed1614c1 <String[22]: ./build/Release/native>,parent=0xd9da66efb39 <a Module with m
ap 0x359f3151b801>#4#,isMain=0x26bb4604271 <false>)
    5: require [module.js:497] [pc=0x1b012b747c93] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,path
=0x1e90ed1614c1 <String[22]: ./build/Release/native>)
    6: require(aka require) [internal/module.js:20] [pc=0x1b012b7479c6] (this=0x26bb4604381 <undefined>,path=0x1e
90ed1614c1 <String[22]: ./build/Release/native>)
    7: /* anonymous */ [/home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js:1] [pc=0x1b012b74a73e] (this
=0xd9da66efbc1 <an Object with map 0x2649783075e9>#5#,exports=0xd9da66efbc1 <an Object with map 0x2649783075e9>#5
#,require=0xd9da66f1589 <JS Function require (SharedFunctionInfo 0x1e90ed15e5b1)>#6#,module=0xd9da66efb39 <a Modu
le with map 0x359f3151b801>#4#,__filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lr
u-addon/index.js>,__dirname=0xd9da66f14f1 <String[51]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon>)
    8: _compile [module.js:570] [pc=0x1b012b7470b0] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,con
tent=0xd9da66f0f69 <String[61]\: module.exports = require('./build/Release/native').LRUCache;\n>,filename=0xd9da6
6ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js>)
    9: .js [module.js:579] [pc=0x1b012b7400eb] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,module=
0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrut
est/node_modules/lru-addon/index.js>)
   10: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filenam
e=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lrutest/node_modules/lru-addon/index.js>)
   11: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,modul
e=0xd9da66efb39 <a Module with map 0x359f3151b801>#4#,filename=0xd9da66ed751 <String[60]: /home/m03geek/dev/pg/lr
utest/node_modules/lru-addon/index.js>)
   12: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e
90ed12c019)>#3#,request=0x1e90ed15df49 <String[9]: lru-addon>,parent=0xd9da66e6129 <a Module with map 0x359f3151b
801>#7#,isMain=0x26bb4604271 <false>)
   13: require [module.js:497] [pc=0x1b012b747c93] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,path
=0x1e90ed15df49 <String[9]: lru-addon>)
   14: require(aka require) [internal/module.js:20] [pc=0x1b012b7479c6] (this=0x26bb4604381 <undefined>,path=0x1e
90ed15df49 <String[9]: lru-addon>)
   15: /* anonymous */ [/home/m03geek/dev/pg/lrutest/index.js:1] [pc=0x1b012b747382] (this=0xd9da66e6221 <an Obje
ct with map 0x2649783075e9>#8#,exports=0xd9da66e6221 <an Object with map 0x2649783075e9>#8#,require=0xd9da66e78c9
 <JS Function require (SharedFunctionInfo 0x1e90ed15e5b1)>#9#,module=0xd9da66e6129 <a Module with map 0x359f3151b
801>#7#,__filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>,__dirname=0xd9da66e77f1 <Str
ing[28]: /home/m03geek/dev/pg/lrutest>)
   16: _compile [module.js:570] [pc=0x1b012b7470b0] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,con
tent=0xd9da66e72b9 <String[147]\: var LRUCache = require('lru-addon');\nvar cache = new LRUCache({ maxElements: 1000 });\ncache.set('some-key', 42);\nvar value = cache.get('some-key');>,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>)
   17: .js [module.js:579] [pc=0x1b012b7400eb] (this=0xd9da66df001 <an Object with map 0x359f3151a939>#1#,module=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>)
   18: load [module.js:487] [pc=0x1b012b73eb12] (this=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>)
   19: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x1b012b73e63d] (this=0x26bb4604381 <undefined>,module=0xd9da66e6129 <a Module with map 0x359f3151b801>#7#,filename=0xd9da66e3a01 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>)
   20: _load [module.js:438] [pc=0x1b012b733ee2] (this=0xd9da66a8601 <JS Function Module (SharedFunctionInfo 0x1e90ed12c019)>#3#,request=0xd9da66a2c11 <String[37]: /home/m03geek/dev/pg/lrutest/index.js>,parent=0x26bb4604201 <null>,isMain=0x26bb46043c1 <true>)
   21: /* anonymous */(aka /* anonymous */) [module.js:604] [pc=0x1b012b7339aa] (this=0x26bb4604381 <undefined>)
   22: run(aka run) [bootstrap_node.js:394] [pc=0x1b012b733830] (this=0x26bb4604381 <undefined>,entryFunction=0x1e90ed151b51 <JS Function Module.runMain (SharedFunctionInfo 0x1e90ed12ce59)>#10#)
   23: startup(aka startup) [bootstrap_node.js:149] [pc=0x1b012b644932] (this=0x26bb4604381 <undefined>)
   24: /* anonymous */(aka /* anonymous */) [bootstrap_node.js:509] [pc=0x1b012b642759] (this=0x26bb4604201 <null>,process=0x26bb46e1921 <a process with map 0x264978311619>#11#)
=====================


==== C stack trace ===============================

 1: v8::Template::Set(v8::Local<v8::Name>, v8::Local<v8::Data>, v8::PropertyAttribute)
 2: LRUCache::init(v8::Local<v8::Object>)
 3: node::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&)
 4: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))
 5: 0x755768
 6: 0x755e69
 7: 0x755fce
 8: 0x1b012b6092a7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.