diff options
author | tv <tv@nomic.retiolum> | 2014-01-06 01:42:04 +0100 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2014-01-06 01:42:04 +0100 |
commit | c7ab5042fef55b71baf6bb637cb6033b25007845 (patch) | |
tree | 88dc8068608c55c535d5ccb6e850f56eb9c5efbb /go/index.js | |
parent | 7023ea2453bde5a09ffd2555c4237443ad88b643 (diff) |
go: talk about the redis key prefix
Diffstat (limited to 'go/index.js')
-rw-r--r-- | go/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/go/index.js b/go/index.js index 44ff79b5..7f1e6a07 100644 --- a/go/index.js +++ b/go/index.js @@ -2,7 +2,7 @@ var hostname = process.env.HOSTN; var httpPort = process.env.PORT; var uriPrefix = process.env.URI_PREFIX; -var redisPrefix = 'go:'; +var redisPrefix = process.env.REDIS_KEY_PREFIX; // automatic configuration @@ -18,6 +18,9 @@ if (!uriPrefix) { } } } +if (!redisPrefix) { + redisPrefix = 'go:'; +} // load libraries |