private ITypeSpecImmutable GetSpecificationFromCache(Type type)
        {
            var key = TypeKeyUtils.GetKeyForType(type);

            TypeUtils.GetType(type.FullName); // This should ensure type is cached
            return(cache.GetSpecification(key));
        }
 public void Add(Type type, ITypeSpecBuilder spec) => cache.Cache(TypeKeyUtils.GetKeyForType(type), spec);