protected void install(final int version) throws IOException {
    if (buffersPool == null) {
      throw new IllegalStateException("Buffers pool is not resolved");
    }
    
    diskCache = DiskLruCache.open(ensureWorkingDirectory(), version, ENTRIES_COUNT, getMaxSize());
    onCacheInstalled();
  }
protected void install(final int version) throws IOException {
    if (buffersPool == null) {
      throw new IllegalStateException("Buffers pool is not resolved");
    }
    
    diskCache = DiskLruCache.open(ensureWorkingDirectory(), version, ENTRIES_COUNT, getMaxSize());
    onCacheInstalled();
  }
protected void install ( final int version ) throws IOException { if ( buffersPool == null ) { throw new IllegalStateException ( "Buffers pool is not resolved" ) ; } diskCache = DiskLruCache . open ( ensureWorkingDirectory ( ) , version , ENTRIES_COUNT , getMaxSize ( ) ) ; onCacheInstalled ( ) ; }
Setup cache. This operation causes disk reads.
@param version cache version
@throws IOException if error happens
Setup cache . This operation causes disk reads .