Skip to content

Commit

Permalink
Added missing parentheses and example config
Browse files Browse the repository at this point in the history
  • Loading branch information
nfriedly committed Mar 28, 2013
1 parent 7026e74 commit 0dfb01c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Readme.md
@@ -1,4 +1,3 @@

# connect-memcached

Memcached session store, using [node-memcached](http://github.com/3rd-Eden/node-memcached) for communication with cache server.
Expand Down Expand Up @@ -38,7 +37,9 @@

app.use(express.session({
secret: 'CatOnTheKeyboard',
store: new MemcachedStore
store: new MemcachedStore({
hosts: [ '127.0.0.1:11212' ] // set to your memcache server's host; see Options for additional info
})
}));

app.get('/', function(req, res){
Expand All @@ -55,7 +56,7 @@

## Options

- `hosts` Memcached servers locations, can by string, array, hash.
- `hosts` Memcached servers locations, can be string, array, hash.
- `prefix` An optional prefix for each memcache key, in case you are sharing
your memcached servers with something generating its own keys.
- ... Rest of given option will be passed directly to the node-memcached constructor.
Expand Down

0 comments on commit 0dfb01c

Please sign in to comment.