using System; using NzbDrone.Common.EnsureThat; namespace NzbDrone.Common.Cache { public static class CacheManger { private static readonly ICached Cache; static CacheManger() { Cache = new Cached(); } public static ICached GetCache(Type type) { Ensure.That(() => type).IsNotNull(); return (ICached)Cache.Get(type.FullName, () => new Cached()); } } }