public static ITroveCacheFactory RegisterRedisCacheFactory(this ITroveCacheFactory factory)
        {
            Contract.NotNull(factory, nameof(factory));

            factory.RegisterFactory <RedisProviderConfig>((config) => new RedisCacheProviderFactory(config));
            return(factory);
        }
        public static ITroveCacheFactory RegisterMemoryCacheFactory(this ITroveCacheFactory factory)
        {
            Contract.NotNull(factory, nameof(factory));

            factory.RegisterFactory <MemoryProviderConfig>((config) => new MemoryCacheProviderFactory());
            return(factory);
        }