Cache.html 1.5 KB

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