Skip to content

Commit a050e32

Browse files
committed
remove Redis
1 parent 4c44eb8 commit a050e32

File tree

3 files changed

+1
-29
lines changed

3 files changed

+1
-29
lines changed

lib/credentials.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,4 @@ else if (typeof process.env.SSS_CLOUDANT_URL === 'string') {
2929
};
3030
}
3131

32-
/*******
33-
REDIS
34-
*******/
35-
36-
if (typeof process.env.SSS_REDIS_HOST === 'string') {
37-
console.log("Using local config for Redis");
38-
services["user-provided"] = [
39-
{
40-
name: "Redis by Compose",
41-
credentials: {
42-
public_hostname: process.env.SSS_REDIS_HOST,
43-
password: process.env.SSS_REDIS_PASSWORD || null
44-
}
45-
46-
}
47-
];
48-
49-
}
50-
5132
module.exports = services;

lib/sssenv.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,9 @@ else {
3737
cloudant.url += "/_utils/database.html?seams";
3838
}
3939

40-
var cacheservice = appEnv.getService("Redis by Compose") || {};
41-
var redis = {
42-
name: (cacheservice.name || null),
43-
username: cacheservice.credentials ? (cacheservice.credentials.username || null) : null,
44-
host: cacheservice.credentials ? (cacheservice.credentials.public_hostname || null) : null
45-
};
46-
4740
var sssenv = {
4841
application: app,
49-
storage: cloudant,
50-
cache: redis
42+
storage: cloudant
5143
};
5244

5345
module.exports = sssenv;

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"passport": "^0.3.2",
2424
"passport-anonymous": "^1.0.1",
2525
"passport-http": "^0.3.0",
26-
"redis": "^0.12.1",
2726
"request": "^2.58.0",
2827
"socket.io": "^1.4.8",
2928
"underscore": "^1.8.3",

0 commit comments

Comments
 (0)