You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: appengine/express-memcached-session/README.md
+32-24
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,14 @@
1
-
# Express + Memcached Sessions -> Google App Engine
1
+
##Express.js + Memcached Sessions on Google App Engine
2
2
3
-
This is a simple guide to using memcached for session state while running [expressjs](http://expressjs.com/) on Google App Engine. Each Google App Engine application comes with a memcached service instance, which can be reached with a standard memcached driver at `memcache:11211`.
3
+
This is a simple guide to using memcached for session state while running
4
+
[Express.js](http://expressjs.com/) on Google App Engine. Each Google App Engine
5
+
application comes with a memcached service instance, which can be reached with a
6
+
standard memcached driver at `memcache:11211`.
4
7
5
8
1.[Create a new Express app](http://expressjs.com/starter/generator.html)
6
9
7
-
2. Create an `app.yaml` in the root of your application with the following contents:
10
+
2. Create an `app.yaml` in the root of your application with the following
11
+
contents:
8
12
9
13
```yaml
10
14
runtime: nodejs
@@ -16,33 +20,37 @@ This is a simple guide to using memcached for session state while running [expre
16
20
17
21
Notice the MEMCACHE_URL environment variable - this is where you can reach your standard memcached cluster across instances.
18
22
19
-
3. Use the [connect-memcached](https://github.com/balor/connect-memcached) module. Run `npm install --save connect-memcached`, and add the following to your server.js or app.js:
23
+
3. Use the [connect-memcached](https://github.com/balor/connect-memcached)
24
+
module. Run `npm install --save connect-memcached`, and add the following to
25
+
your server.js or app.js:
20
26
21
27
```js
22
28
var MemcachedStore = require('connect-memcached')(session);
0 commit comments