Closed Roba1993 closed 9 years ago
Hier die Library zum cachen der Foursquare Daten. @Neram @Tabea-Kraus @Micash0711 @TobiasH1993
http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/cache/CacheBuilder.html
listeners = CacheBuilder.newBuilder().expireAfterAccess(1, TimeUnit.MINUTES) .removalListener(new RemovalListener<String, UpdateListenerInternal>() { @Override public void onRemoval(RemovalNotification<String, UpdateListenerInternal> notification) { // De-register the listener log.info("Removed key {} after timeout (new size: {})", notification.getKey(), listeners.size()); sheetContents.removeListener(notification.getValue()); } }).build();
Tobi, hast du diesen Cache nun verwendet?
@TobiasH1993
Was ist nun mit diesem Issu?
Cache erfolgreich eingebaut.
Hier die Library zum cachen der Foursquare Daten. @Neram @Tabea-Kraus @Micash0711 @TobiasH1993
http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/cache/CacheBuilder.html