folsom

Searchable in-memory object cache

npm install folsom
4 downloads in the last week
11 downloads in the last month

folsom

Searchable in-memory object cache

build status

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(err, results) {
  // results === [
  //   {name: 'Suzanne'},
  //   {name: 'Suzie'},
  //   {name: 'El Suzerino'},
  //   {name: 'The Suzster'}
  // ]
})

install

With npm do:

npm install folsom

license

MIT

npm loves you