Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pdufour committed Feb 9, 2012
1 parent 3983f45 commit 8666448
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions Readme.md
Expand Up @@ -28,22 +28,23 @@
);

## Example in Express JS
var express = require('express');
var MemcachedStore = require('/connect-memcached')(express);
app.configure(function(){
...
app.use(express.session({
store: new MemcachedStore({
hosts: [
'192.168.1.65:11213',
'192.168.1.66:11213',
'192.168.1.67:11213'
]
}),
secret: 'thisissosick'
}));
...
});

var express = require('express');
var MemcachedStore = require('/connect-memcached')(express);
app.configure(function(){
...
app.use(express.session({
store: new MemcachedStore({
hosts: [
'192.168.1.65:11213',
'192.168.1.66:11213',
'192.168.1.67:11213'
]
}),
secret: 'thisissosick'
}));
...
});

## Options

Expand Down

0 comments on commit 8666448

Please sign in to comment.