All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.dyno.demo.memcached.DynoMCacheDriver Maven / Gradle / Ivy

package com.netflix.dyno.demo.memcached;


//public class DynoMCacheDriver extends DynoDriver {
//
//	private static final DynoDriver Instance = new DynoMCacheDriver();
//	
//	private AtomicReference client = new AtomicReference(null);
//
//	public static DynoDriver getInstance() {
//		return Instance;
//	}
//	
//	private DynoMCacheDriver() {
//		super();
//	}
//	
//	public DynoClient dynoClientWrapper = new DynoClient () {
//
//		@Override
//		public void init() {
//			 client.set(DynoMCacheClient.Builder.withName("Demo")
//						.withDynomiteClusterName("dynomite_memcached_puneet")
//						.withConnectionPoolConfig(new ConnectionPoolConfigurationImpl("dynomite_memcached_puneet")
//												  .setPort(8102))
//						.build());
//		}
//
//		@Override
//		public String get(String key) throws Exception {
//			return client.get().get(key).getResult();
//		}
//
//		@Override
//		public void set(String key, String value) {
//			client.get().set(key, value);
//		}
//	};
//	
//	public DynoClient getDynoClient() {
//		return dynoClientWrapper;
//	}
//}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy