folsom

Searchable in-memory object cache

folsom

Searchable in-memory object cache

example

var folsom = require('../index.js')
  , people = folsom('people')
 
// Set searchable key 
people.index('name')
 
people.add([
  {name: 'Sue'},
  {name: 'Suzie'},
  {name: 'Susan'},
  {name: 'Suzanne'},
  {name: 'El Suzerino'},
  {name: 'The Suzster'}
])
 
people.search('suz', function(errresults) {
  // results === [ 
  //   {name: 'Suzanne'}, 
  //   {name: 'Suzie'}, 
  //   {name: 'El Suzerino'}, 
  //   {name: 'The Suzster'} 
  // ] 
})

install

With npm do:

npm install folsom

license

MIT