initialize.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <html>
  2. <head>
  3. <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
  4. <title>initialize</title>
  5. <link href="../../../../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script><script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../../scripts/main.js" async="async"></script> </head>
  6. <body>
  7. <div id="container">
  8. <div id="leftColumn"><a href="../../../index.html">
  9. <div id="logo"></div>
  10. </a>
  11. <div id="paneSearch"></div>
  12. <div id="sideMenu"></div>
  13. </div>
  14. <div id="main">
  15. <div id="leftToggler"><span class="icon-toggler"></span></div>
  16. <script type="text/javascript" src="../../../scripts/main.js"></script> <div class="main-content" id="content" pageIds="Net::com.drake.net.cache/ForceCache/initialize/#/PointingToDeclaration//1281733757">
  17. <div class="navigation-wrapper" id="navigation-wrapper">
  18. <div class="breadcrumbs"><a href="../../../index.html">Net</a>/<a href="../index.html">com.drake.net.cache</a>/<a href="index.html">ForceCache</a>/<a href="initialize.html">initialize</a></div>
  19. <div class="pull-right d-flex">
  20. <div id="searchBar"></div>
  21. </div>
  22. </div>
  23. <div class="cover ">
  24. <h1 class="cover"><span>initialize</span></h1>
  25. </div>
  26. <div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  27. <div>
  28. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="initialize.html">initialize</a>()<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  29. </div>
  30. <p class="paragraph">Initialize the cache. This will include reading the journal files from the storage and building up the necessary in-memory cache information.</p><p class="paragraph">The initialization time may vary depending on the journal file size and the current actual cache size. The application needs to be aware of calling this function during the initialization phase and preferably in a background worker thread.</p><p class="paragraph">Note that if the application chooses to not call this method to initialize the cache. By default, OkHttp will perform lazy initialization upon the first usage of the cache.</p></div>
  31. </div>
  32. <div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2023 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
  33. </div>
  34. </div>
  35. </body>
  36. </html>