Tabnine Logo
DiskLruCache.getMaxFileCount
Code IndexAdd Tabnine to your IDE (free)

How to use
getMaxFileCount
method
in
com.nostra13.universalimageloader.cache.disc.impl.ext.DiskLruCache

Best Java code snippets using com.nostra13.universalimageloader.cache.disc.impl.ext.DiskLruCache.getMaxFileCount (Showing top 4 results out of 315)

origin: nostra13/Android-Universal-Image-Loader

@Override
public void clear() {
  try {
    cache.delete();
  } catch (IOException e) {
    L.e(e);
  }
  try {
    initCache(cache.getDirectory(), reserveCacheDir, cache.getMaxSize(), cache.getMaxFileCount());
  } catch (IOException e) {
    L.e(e);
  }
}
origin: com.nostra13.universalimageloader/universal-image-loader

@Override
public void clear() {
  try {
    cache.delete();
  } catch (IOException e) {
    L.e(e);
  }
  try {
    initCache(cache.getDirectory(), reserveCacheDir, cache.getMaxSize(), cache.getMaxFileCount());
  } catch (IOException e) {
    L.e(e);
  }
}
origin: wanliyang1990/WliveTV

@Override
public void clear() {
  try {
    cache.delete();
  } catch (IOException e) {
    L.e(e);
  }
  try {
    initCache(cache.getDirectory(), reserveCacheDir, cache.getMaxSize(), cache.getMaxFileCount());
  } catch (IOException e) {
    L.e(e);
  }
}
origin: jiangqqlmj/Android-Universal-Image-Loader-Modify

/**
 * 进行清除缓存数据
 */
@Override
public void clear() {
  try {
    cache.delete();
  } catch (IOException e) {
    L.e(e);
  }
  try {
    //这边重新初始化缓存器   缓存器中文件为空
    initCache(cache.getDirectory(), reserveCacheDir, cache.getMaxSize(), cache.getMaxFileCount());
  } catch (IOException e) {
    L.e(e);
  }
}
com.nostra13.universalimageloader.cache.disc.impl.extDiskLruCachegetMaxFileCount

Javadoc

Returns the maximum number of files that this cache should store

Popular methods of DiskLruCache

  • <init>
  • checkNotClosed
  • close
    Closes this cache. Stored values will remain on the filesystem.
  • delete
    Closes the cache and deletes all of its stored values. This will delete all files in the cache direc
  • deleteIfExists
  • edit
  • get
    Returns a snapshot of the entry named key, or null if it doesn't exist is not currently readable. If
  • getDirectory
    Returns the directory where this cache stores its data.
  • getMaxSize
    Returns the maximum number of bytes that this cache should use to store its data.
  • journalRebuildRequired
    We only rebuild the journal when it will halve the size of the journal and eliminate at least 2000 o
  • open
    Opens the cache in directory, creating a cache if none exists there.
  • processJournal
    Computes the initial size and collects garbage as a part of opening the cache. Dirty entries are ass
  • open,
  • processJournal,
  • readJournal,
  • readJournalLine,
  • rebuildJournal,
  • remove,
  • renameTo,
  • trimToFileCount,
  • trimToSize

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best IntelliJ plugins
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