Created
October 26, 2012 15:18
-
-
Save timsavery/3959377 to your computer and use it in GitHub Desktop.
Constructing a TypedCache<T> Instance With Chatham.Libraries.Ioc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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