Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change to env variables

  • Loading branch information...
commit b6ddd277a535ae638b44a62386b7040f0f4efeb2 1 parent 2395f2f
@jsimone jsimone authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/heroku/devcenter/Main.java
View
4 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"));
}
Please sign in to comment.
Something went wrong with that request. Please try again.