This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LookasideCache { | |
private CacheCluster cacheCluster; | |
private LeaseUtils leaseUtils; | |
/** | |
* Read a value utilizing a lookaside cache. | |
* | |
* @param key whose value is to be returned | |
* @param sourceOfTruthComputation the function to use to fetch the value from the | |
* source of truth if that should become necessary. |