Roba1993 / Happy-Hour

Das DHBW Happy-Hour Projekt vom Kurs WWI2012F
MIT License
4 stars 0 forks source link

Cache von Foursquare-Daten #67

Closed Roba1993 closed 9 years ago

Roba1993 commented 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();
Roba1993 commented 9 years ago

Tobi, hast du diesen Cache nun verwendet?

Roba1993 commented 9 years ago

@TobiasH1993

Was ist nun mit diesem Issu?

TobiasH1993 commented 9 years ago

Cache erfolgreich eingebaut.