1. A computer-implemented method for document-class-based cache management of documents comprising: storing first class schema metadata that defines constraints on a data structure of a first class of documents; storing first caching metadata that defines first caching management properties to apply to caching of said first class of documents and that associates said first class schema metadata with the first caching management properties; wherein caching management properties specify one or more aspects for retaining in a cache a document of said first class of documents; storing second class schema metadata that defines constraints on the data structure of a second class of documents; storing second caching metadata that specifies second caching management properties to apply to caching of said second class of documents and that associates said second class schema metadata with the second caching management properties; wherein the first class schema metadata is different from the second class schema metadata; making a determination that a first document belongs to said first class of documents; in response to making a determination that said first document belongs to said first class of documents, accessing the first caching metadata to determine the first caching management properties to apply to said first document; caching said first document according to the determined first caching management properties to apply to said first document; making a determination that a second document belongs to said second class of documents; in response to making a determination that said second document belongs to said second class of documents, accessing the second caching metadata to determine the second caching management properties to apply to said second document; and caching said second document according to the determined second caching management properties to apply to said second document.