- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for createExpensiveGraph (0.07 sec)
-
guava/src/com/google/common/cache/CacheLoader.java
* return createExpensiveGraph(key); * } * }; * LoadingCache<Key, Graph> cache = CacheBuilder.newBuilder().build(loader); * } * * <p>Since this example doesn't support reloading or bulk loading, it can also be specified much * more simply: * * {@snippet : * CacheLoader<Key, Graph> loader = CacheLoader.from(key -> createExpensiveGraph(key)); * } * * @author Charles Fry
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.5K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
* .removalListener(MY_LISTENER) * .build( * new CacheLoader<Key, Graph>() { * public Graph load(Key key) throws AnyException { * return createExpensiveGraph(key); * } * }); * } * * <p>Or equivalently, * * {@snippet : * // In real life this would come from a command-line flag or config file
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 51.7K bytes - Viewed (0)