# US 2022/0035741 A1 · Persisted Data Cache Service

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0035741 A1
- Document ID: US20220035741A1
- Status: Published application
- Kind: A1
- Application number: 17/039,427
- Filed: 2020-09-30
- Published: 2022-02-03
- Earliest claimed: 2020-07-31
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Aninda RAY; David Guerrero DEL RIO; Negin ARHAMI; Zhi LIU; Anton Yuriyovych LABUNETS; Pramod Kumar CHANDORIA; Dennis Joel David MYREN
- Web page: https://patentgrep.com/patent/US20220035741A1

## CPC

- G06F 12/0813: with a network or matrix configuration
- G06F 16/957: Browsing optimisation, e.g. caching or content distillation
- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 12/1466: {Key-lock mechanism}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/568: Storing data temporarily at an intermediate stage, e.g. caching
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques performed by a data processing system for caching data herein include initializing a single instance of a persisted cache service on the data processing system, receiving data requests from a plurality of single page applications (SPAs) on the data processing system, processing the data requests using the persisted cache service to obtain requested data from a cache implemented on the data processing system or from one or more remote data sources via a network connection, and providing the requested data obtained from the cache or the one or more remote data sources to an SPA of the plurality of SPAs from which each data request originated.

## Claims

### Claim 1

A data processing system comprising:
a processor; and
a computer-readable medium storing executable instructions for causing the processor to perform operations of:
initializing a single instance of a persisted cache service on the data processing system;
receiving data requests from a plurality of single page applications (SPAs) on the data processing system;
processing the data requests using the persisted cache service to obtain requested data from a cache implemented on the data processing system or from one or more remote data sources via a network connection; and
providing the requested data obtained from the cache or the one or more remote data sources to an SPA of the plurality of SPAs from which each data request originated.

### Claim 2

The data processing system of statement 1, wherein each data request includes cache strategy parameters that indicate how the persisted cache service obtains the requested data.

### Claim 3 (depends on 2)

The data processing system of claim 2, wherein the cache strategy parameters include a cache-only strategy and a network-only strategy, wherein the cache strategy indicates that the persisted cache service obtains the requested data from only the cache, wherein the network-only strategy indicates that the persisted cache services obtains the requested data from only the one or more remote data sources.

### Claim 4 (depends on 2)

The data processing system of claim 2, wherein the cache strategy parameters include a cache or network strategy, wherein the cache or network strategy indicates that the persisted cache service first attempts to obtain the requested data from the cache and then attempts to obtain the requested data from the one or more remote data sources response to the requested data being unavailable or expired in the cache.

### Claim 5 (depends on 2)

The data processing system of claim 2, wherein the cache strategy parameters include a cache and network strategy, wherein the cache and network strategy indicates that the persisted cache services first attempts to obtain the requested data from the cache and provide the requested data from the cache to the SPA of the plurality of SPAs from which the data request originated and also obtain the requested data from the one or more remote data services and provide the requested data from the one or more remote data services to the SPA of the plurality of SPAs from which the data request originated.

### Claim 6 (depends on 5)

The data processing system of claim 5, wherein the persisted cache service is configured to update the cache with data received from the one or more remote data services.

### Claim 7 (depends on 1)

The data processing system of claim 1, wherein the cache is organized into a plurality of key-value pairs, wherein the key represents a cache key value calculated for the cache entry based on request parameters associated with the cache data, and wherein the value represents a cache data entry that includes data obtained from the one or more network services.

### Claim 8 (depends on 7)

The data processing system of claim 7, wherein the cache key value represents a common URL served across SPA boundaries.

### Claim 9 (depends on 7)

The data processing system of claim 7, wherein the computer-readable medium includes instructions for causing the processor to perform operations of:
serializing one or more request parameters associated with a data request to generate serialized request data;
hashing the serialized request data to generate a first hashed value;
obtaining user information associated with a user associated with the data request;
serializing the user information to generate a second hashed value;
appending the first hashed value to the second hashed value to generate the cache key value associated with the data request.

### Claim 10 (depends on 9)

The data processing system of claim 9, wherein the computer-readable medium includes instructions for causing the processor to perform the operations of:
normalizing an order of search parameters associated with the data request prior to serializing the one or more request parameters.

### Claim 11 (depends on 9)

The data processing system of claim 9, wherein the computer-readable medium includes instructions for causing the processor to perform the operations of:
searching the cache for a data entry that includes the cache key; and
providing the data value associated with the cache key to the SPA originating the data request.

### Claim 12 (depends on 9)

The data processing system of claim 9, wherein the computer-readable medium includes instructions for causing the processor to perform operations of:
receiving an event notification of a user-related event that includes a Universal Resource Locator (URL) in a payload of the event notification, wherein the URL indicates a domain associated with the user-related event;
identifying at least a portion of data in the cache associated with the URL; and
invalidating the at least a portion of the data in the cache associated with the URL.

### Claim 13 (depends on 1)

The data processing system of claim 1, wherein the computer-readable medium includes instructions for causing the processor to perform operations of:
obtaining cache data from a server-based cache to populate the cache on the data processing system.

### Claim 14 (depends on 13)

The data processing system of claim 13, wherein the cache data is obtained from the server-based case to refresh the cache of the data processing system with fresh data associated with multiple users, to prepopulate the cache with the fresh data responsive to a user utilizing a new device, or both.

### Claim 15

A method implemented in a data processing system for caching data, the method comprising:
initializing a single instance of a persisted cache service on the data processing system;
receiving data requests from a plurality of single page applications (SPAs) on the data processing system;
processing the data requests using the persisted cache service to obtain requested data from a cache implemented on the data processing system or from one or more remote data sources via a network connection; and
providing the requested data obtained from the cache or the one or more remote data sources to an SPA of the plurality of SPAs from which each data request originated.

### Claim 16

The method of statement 15, wherein each data request includes cache strategy parameters that indicate how the persisted cache service obtains the requested data.

### Claim 17 (depends on 16)

The method of claim 16, wherein the cache strategy parameters include a cache-only strategy and a network-only strategy, wherein the cache strategy indicates that the persisted cache service obtains the requested data from only the cache, wherein the network-only strategy indicates that the persisted cache services obtains the requested data from only the one or more remote data sources.

### Claim 18

A computer-readable storage medium on which are stored instructions that when executed cause a processor of a programmable device to perform functions of:
initializing a single instance of a persisted cache service on the programmable device;
receiving data requests from a plurality of single page applications (SPAs) on the programmable device;
processing the data requests using the persisted cache service to obtain requested data from a cache implemented on the programmable device or from one or more remote data sources via a network connection; and
providing the requested data obtained from the cache or the one or more remote data sources to an SPA of the plurality of SPAs from which each data request originated.

### Claim 19

The computer-readable storage medium of statement 18, wherein each data request includes cache strategy parameters that indicate how the persisted cache service obtains the requested data.

### Claim 20 (depends on 169)

The computer-readable storage medium of claim 169, wherein the cache strategy parameters include a cache-only strategy and a network-only strategy, wherein the cache strategy indicates that the persisted cache service obtains the requested data from only the cache, wherein the network-only strategy indicates that the persisted cache services obtains the requested data from only the one or more remote data sources.
