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 .