Skip to content

Instantly share code, notes, and snippets.

@timsavery
Created October 26, 2012 15:18
Show Gist options
  • Save timsavery/3959377 to your computer and use it in GitHub Desktop.
Save timsavery/3959377 to your computer and use it in GitHub Desktop.
Constructing a TypedCache<T> Instance With Chatham.Libraries.Ioc
Chatham.Libraries.Ioc.IocContainer.Instance.Bind<IStatsClient>(() => new StatsdClient());
Chatham.Libraries.Ioc.IocContainer.Instance.Bind<ICacheClient>(() => new MemcachedClient());
var typedCache = Chatham.Libraries.Ioc.IocContainer.Instance.Get<TypedCache<MyObject>>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment