Request based caching of data store data
Abstract
A request, such as those embedded in URLs and XML documents, is assigned to a thread of execution in a server that is in communication with a data store. The thread of execution includes a thread local storage with a pointer to a cache object. The cache object maintains copies of data store entries frequently accessed by the assigned request. The cache object is accessed in response to data store access commands arising from the request. When a data store access command specifies a data store entry not found in the cache object, the server creates and loads a corresponding cache object entry. The cache object is not updated when other requests alter data store entries, and memory access commands arising from other requests cannot cause the cache object to be accessed. When the request causes the server to write data to the data store, the cache object also maintains a copy of the written data. The server retrieves the written data from the cache object in response to subsequent data store access queries arising from the request. The cache object is destroyed once the server completes a response to the request.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 143.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for caching data associated with entries in a data store accessed in response to a request assigned to a thread of execution, said method comprising: (a) determining that a first command arising from said request calls for access to a data store entry in said data store; and (b) accessing a first entry in a cache object in response to said first command, wherein said first entry corresponds to said data store entry, wherein said cache object is separate from said data store, wherein said cache object is associated with said thread of execution, and wherein said cache object is only ac
- Claim 2Depends on #1
The method of claim 1 , further including: (c) destroying said cache object in response to said
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗