Patent ID: 8867337

Claim:
A method for structure-aware caching, wherein the method comprises: generating multiple rules for decomposing and caching multiple objects into a cache based on the structure of each of the multiple objects and one or more relationships that exist between the multiple objects, wherein the multiple rules capture one or more main data objects returned by the server, the format of the one or more data objects, relationships that exist between the one or more data objects, a cache expiration default for each data object, and one or more anticipated uniform resource locator (URL) patterns for each data object; decomposing a response from an origin server into multiple independently addressable objects and adding the multiple independently addressable objects to a cache based on the multiple generated rules, wherein each of the multiple independently addressable objects comprises a uniform resource locator (URL); using a domain specific language to navigate the response to identify the multiple independently addressable objects and create one or more cache access paths to the multiple independently addressable objects; receiving a request for a given cached object from the cache, wherein said given cached object is one of the of the multiple independently addressable objects; and selecting a given cache access path from the one or more cache access paths, within the cache to the given cached object by: generating a mapping between the one or more anticipated uniform resource locator (URL) patterns for each data object and the one or more cache access paths; and using said mapping to match the request to the given cache access path.