Tabnine Logo
BasicLruCache.evictAll
Code IndexAdd Tabnine to your IDE (free)

How to use
evictAll
method
in
libcore.util.BasicLruCache

Best Java code snippets using libcore.util.BasicLruCache.evictAll (Showing top 9 results out of 315)

origin: robovm/robovm

/**
 * Removes all entries from the cache.
 */
public void clear() {
  cache.evictAll();
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Removes all entries from the cache.
 */
public void clear() {
  cache.evictAll();
}
origin: MobiVM/robovm

/**
 * Removes all entries from the cache.
 */
public void clear() {
  cache.evictAll();
}
origin: com.bugvm/bugvm-rt

/**
 * Removes all entries from the cache.
 */
public void clear() {
  cache.evictAll();
}
origin: ibinti/bugvm

/**
 * Removes all entries from the cache.
 */
public void clear() {
  cache.evictAll();
}
origin: com.gluonhq/robovm-rt

/**
 * Removes all entries from the cache.
 */
public void clear() {
  cache.evictAll();
}
origin: FlexoVM/flexovm

/**
 * Removes all entries from the cache.
 */
public void clear() {
  cache.evictAll();
}
origin: ibinti/bugvm

private synchronized void rebuild() throws PinManagerException {
  // reread the pin file
  String pinFileContents = readPinFile();
  if (pinFileContents != null) {
    // rebuild the pinned certs
    for (String entry : getPinFileEntries(pinFileContents)) {
      try {
        PinListEntry pin = new PinListEntry(entry, certStore);
        entries.put(pin.getCommonName(), pin);
      } catch (PinEntryException e) {
        log("Pinlist contains a malformed pin: " + entry, e);
      }
    }
    // clear the cache
    hostnameCache.evictAll();
    // set the last modified time
    lastModified = pinFile.lastModified();
    // we've been fully initialized and are ready to go
    initialized = true;
  }
}
origin: com.bugvm/bugvm-rt

private synchronized void rebuild() throws PinManagerException {
  // reread the pin file
  String pinFileContents = readPinFile();
  if (pinFileContents != null) {
    // rebuild the pinned certs
    for (String entry : getPinFileEntries(pinFileContents)) {
      try {
        PinListEntry pin = new PinListEntry(entry, certStore);
        entries.put(pin.getCommonName(), pin);
      } catch (PinEntryException e) {
        log("Pinlist contains a malformed pin: " + entry, e);
      }
    }
    // clear the cache
    hostnameCache.evictAll();
    // set the last modified time
    lastModified = pinFile.lastModified();
    // we've been fully initialized and are ready to go
    initialized = true;
  }
}
libcore.utilBasicLruCacheevictAll

Javadoc

Clear the cache, calling #entryEvicted on each removed entry.

Popular methods of BasicLruCache

  • create
    Called after a cache miss to compute a value for the corresponding key. Returns the computed value o
  • entryEvicted
    Called for entries that have reached the tail of the least recently used queue and are be removed. T
  • get
    Returns the value for key if it exists in the cache or can be created by #create. If a value was ret
  • put
    Caches value for key. The value is moved to the head of the queue.
  • trimToSize

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JFileChooser (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now