US 11,734,278 B2
Cache management for multiple tenants
Harsha Vattem, Hyderabad (IN); Jayant Kumar, Hyderabad (IN); and Gopi Krishna Mudumbai, Hyderabad (IN)
Assigned to Salesforce, Inc., San Francisco, CA (US)
Filed by salesforce.com, inc., San Francisco, CA (US)
Filed on Oct. 19, 2021, as Appl. No. 17/504,898.
Prior Publication US 2023/0117856 A1, Apr. 20, 2023
Int. Cl. G06F 16/2455 (2019.01); G06F 16/27 (2019.01); G06F 16/248 (2019.01); G06F 16/242 (2019.01)
CPC G06F 16/24552 (2019.01) [G06F 16/244 (2019.01); G06F 16/248 (2019.01); G06F 16/27 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A method, comprising:
retrieving, by a server computer system from a database cache storing data for different tenants, a set of key-value entries and cache metadata for the set of key-value entries;
identifying, by the server computer system based on analyzing keys of key-value entries, tenants corresponding to respective ones of the set of key-value entries, wherein the identifying includes:
parsing respective keys included in the set of key-value entries retrieved from the database cache to determine two or more separate portions of the respective keys; and
matching the two or more separate portions from respective keys to one or more known expressions included in a database of expressions corresponding to different tenants;
generating, by the server computer system based on the identified tenants and cache metadata for cache entries corresponding to the identified tenants, current usage metrics for the database cache; and
determining, by the server computer system based on the current usage metrics for the database cache, whether to adjust one or more operation parameters of the database cache.