Cache.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../list.js"></script>
  6. <script src="../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <div class="desc">A simple caching classe, used internaly by [page:XHRLoader].</div>
  12. <h2>Constructor</h2>
  13. <h3>[name]()</h3>
  14. <div>
  15. Creates a new [name].
  16. </div>
  17. <h2>Properties</h2>
  18. <h3>[property:Object files]</h3>
  19. <div>
  20. An [page:Object object] that hold cached values.
  21. </div>
  22. <h2>Methods</h2>
  23. <h3>[method:null add]( [page:String key], value )</h3>
  24. <div>
  25. [page:String key] — required. A string key <br />
  26. [page:Object] value — <br />
  27. </div>
  28. <div>
  29. Adds a cache entry with that key to hold the value. If this key already holds a value, it is overwritten.
  30. </div>
  31. <h3>[method:null get]( [page:String key] )</h3>
  32. <div>
  33. [page:String key] — required. A string key <br />
  34. </div>
  35. <div>
  36. Get the value of key. If the key does not exist the null value is returned.
  37. </div>
  38. <h3>[method:null remove]( [page:String key] )</h3>
  39. <div>
  40. [page:String key] — required. A string key <br />
  41. </div>
  42. <div>
  43. Remove the cached value associated with the key.
  44. </div>
  45. <h3>[method:null clear]()</h3>
  46. <div>
  47. Remove all values from the cache.
  48. </div>
  49. <h2>Source</h2>
  50. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  51. </body>
  52. </html>