Permalink
Browse files

change to env variables

  • Loading branch information...
jsimone committed Nov 18, 2011
1 parent 2395f2f commit b6ddd277a535ae638b44a62386b7040f0f4efeb2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/heroku/devcenter/Main.java
@@ -21,7 +21,7 @@
*/
public static void main(String[] args) throws IOException, URISyntaxException {
AuthDescriptor ad = new AuthDescriptor(new String[]{"PLAIN"},
- new PlainCallbackHandler("app1805387@heroku.com", "k/aoMGr9EcKo4Sa6"));
+ new PlainCallbackHandler(System.getenv("MEMCACHE_USERNAME"), System.getenv("MEMCACHE_PASSWORD")));
ConnectionFactoryBuilder factoryBuilder = new ConnectionFactoryBuilder();
ConnectionFactory cf = factoryBuilder.setProtocol(Protocol.BINARY).setAuthDescriptor(ad).build();
@@ -30,7 +30,7 @@ public static void main(String[] args) throws IOException, URISyntaxException {
// baseURIs.add(base);
// MemcachedClient memcachedClient = new MemcachedClient(baseURIs, "default", System.getenv("MEMCACHE_USERNAME"), System.getenv("MEMCACHE_PASSWORD"));
- MemcachedClient memcachedClient = new MemcachedClient(cf, Collections.singletonList(new InetSocketAddress("mc7.ec2.northscale.net", 11211)));
+ MemcachedClient memcachedClient = new MemcachedClient(cf, Collections.singletonList(new InetSocketAddress(System.getenv("MEMCACHE_SERVERS"), 11211)));
memcachedClient.add("test", 0, "testData");
System.out.println(memcachedClient.get("test"));
}

0 comments on commit b6ddd27

Please sign in to comment.