Method for caching resource representations in a contextual address space
Assignee1060 Research Limited
InventorsPeter James Rodgers, Antony Allan Butterfield
Life of this patent
Estimating the term…
Abstract
A method to generate and save a resource representation recited by a request encoded in a computer algorithm, wherein the method receives from a requesting algorithm an Unresolved resource request. The method resolves the resource request to an endpoint and evaluates the resolved resource request by the endpoint to generate a resource representation. The method further generates and saves in a cache at least one Unresolved request scope key, a resolved request scope key, and a cache entry comprising the resource representation. The method associates the cache entry with the resolved request scope key and with the at least one Unresolved request scope key using a mapping function encoded in the cache.
Claims66
A method to generate and save a resource representation recited by a request encoded in a computer algorithm, comprising:
- receiving from a requesting algorithm an Unresolved resource request, wherein said Unresolved resource request is associated with a first context, wherein said first context comprises a first address space, and wherein said Unresolved resource request comprises an Unresolved request scope comprising at least said first context;
- resolving said Unresolved resource request to an endpoint, wherein said endpoint is associated with a second context, wherein said second context comprises a second address space;
- evaluating said resolved resource request by said endpoint to generate said resource representation;
- generating and saving in a cache at least one Unresolved request scope key;
- generating and saving in said cache a resolved request scope key;
- generating and saving in said cache a cache entry comprising said resource representation;
- associating said cache entry with said resolved request scope key and with said at least one Unresolved request scope key using a mapping function encoded in said cache;
- wherein said Unresolved resource request comprises a resource identifier and a verb, and wherein said resolving step comprises:
- configuring a representation cache comprising one or more representation cache keys, and one or more representation cache entries, wherein each representation cache key comprises a resource identifier, a verb, and a request scope, and wherein each representation cache entry comprises a resource representation and response metadata comprising an expiry determinant;
- selecting a representation cache key;
- determining if said representation cache key matches said Unresolved resource request;
- operative if said representation cache key matches said Unresolved resource request, determining using an expiry determinant encoded in a representation cache entry associated with said selected representation cache key if a resource representation encoded in said representation cache entry associated with said selected representation cache key has expired;
- operative if said resource representation encoded in said representation cache entry associated with said selected representation cache key has not expired, returning to a kernel function said resource representation encoded in said representation cache entry associated with said selected representation cache key.
An article of manufacture comprising a programmable processor and at least one non-transitory computer readable medium, said at least one computer readable medium comprising computer readable program code disposed therein to generate and save a resource representation, the computer readable program code comprising a series of computer readable program steps to effect:
- receiving from a requesting algorithm an Unresolved resource request, wherein said Unresolved resource request is associated with a first context, wherein said first context comprises a first address space, and wherein said Unresolved resource request comprises an Unresolved request scope comprising at least said first context;
- resolving said Unresolved resource request to an endpoint, wherein said endpoint is associated with a second context, wherein said second context comprises a second address space;
- evaluating said resolved resource request by said endpoint to generate said resource representation;
- generating and saving in a cache at least one Unresolved request scope key;
- generating and saving in said cache a resolved request scope key;
- generating and saving in said cache a cache entry comprising said resource representation;
- associating said cache entry with said resolved request scope key and with said at least one Unresolved request scope key using a mapping function encoded in said cache;
- wherein said Unresolved resource request comprises a resource identifier and a verb, and wherein said computer readable program code to resolve said resource request to an endpoint comprises a series of computer readable program steps to effect:
- configuring a representation cache comprising one or more representation cache keys, and one or more representation cache entries, wherein each representation cache key comprises a resource identifier, a verb, and a request scope, and wherein each representation cache entry comprises a resource representation and response metadata comprising an expiry determinant;
- selecting a representation cache key;
- determining if said representation cache key matches said Unresolved resource request;
- operative if said representation cache key matches said Unresolved resource request, determining using an expiry determinant encoded in a representation cache entry associated with said selected representation cache key if a resource representation encoded in said representation cache entry associated with said selected representation cache key has expired;
- operative if said resource representation encoded in said representation cache entry associated with said selected representation cache key has not expired, returning to a kernel function said resource representation encoded in said representation cache entry associated with said selected representation cache key.
A computer program product encoded in a non-transitory computer readable medium and useable with a programmable processor to generate and save a resource representation, the computer program product comprising:
- computer readable program code which causes said programmable processor to receive from a requesting algorithm an Unresolved resource request, wherein said Unresolved resource request is associated with a first context, wherein said first context comprises a first address space, and wherein said Unresolved resource request comprises an Unresolved request scope comprising at least said first context;
- computer readable program code which causes said programmable processor to resolve said Unresolved resource request to an endpoint, wherein said endpoint is associated with a second context, wherein said second context comprises a second address space;
- computer readable program code which causes said programmable processor to evaluate said resolved resource request by said endpoint to generate said resource representation;
- computer readable program code which causes said programmable processor to generate and save in a cache at least one Unresolved request scope key;
- computer readable program code which causes said programmable processor to generate and save in said cache a resolved request scope key;
- computer readable program code which causes said programmable processor to generate and save in said cache a cache entry comprising said resource representation;
- computer readable program code which causes said programmable processor to associate said cache entry with said resolved request scope key and with said at least one Unresolved request scope key using a mapping function encoded in said cache;
- wherein said Unresolved resource request comprises a resource identifier and a verb, and wherein said computer readable program code to resolve said resource request to an endpoint comprises:
- computer readable program code which causes said programmable processor to configure a representation cache comprising one or more representation cache keys, and one or more representation cache entries, wherein each representation cache key comprises a resource identifier, a verb, and a request scope, and wherein each representation cache entry comprises a resource representation and response metadata comprising an expiry determinant;
- computer readable program code which causes said programmable processor to select a representation cache key;
- computer readable program code which causes said programmable processor to determine if said selected representation cache key matches said Unresolved resource request;
- computer readable program code which, if said representation cache key matches said Unresolved resource request, causes said programmable processor to determine using an expiry determinant encoded in a representation cache entry associated with said selected representation cache key if a resource representation encoded in said representation cache entry associated with said selected representation cache key has expired;
- computer readable program code which, if said resource representation encoded in said representation cache entry associated with said selected representation cache key has not expired, causes said programmable processor to return to a kernel function said resource representation encoded in said representation cache entry associated with said selected representation cache key.
Dependencies are inferred from the claim text.