Skip to content

Instantly share code, notes, and snippets.

@sirech
Created May 8, 2022 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirech/a3b3b79e229179a73394a393a656931b to your computer and use it in GitHub Desktop.
Save sirech/a3b3b79e229179a73394a393a656931b to your computer and use it in GitHub Desktop.
public class SyncFallbackCache<T, R extends Cacheable<T>> extends AbstractFallbackCache<T, R> {
public T get(Supplier<String> keySupplier, Supplier<R> valueSupplier);
private T getAndCache(String key, Supplier<R> valueSupplier);
private T getFromCacheOrThrow(String key, RuntimeException exception);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment