Store the version of any class for cache invalidation