This repository has been archived by the owner. It is now read-only.
Browse files

document require.cache

  • Loading branch information...
ry committed Jun 3, 2011
1 parent 58a1d7e commit b96ae6674d6b499c5cf1ed4825520adabb22c943
Showing with 6 additions and 0 deletions.
  1. +6 −0 doc/api/globals.markdown
@@ -32,6 +32,12 @@ To require modules. See the [Modules](modules.html#modules) section.
Use the internal `require()` machinery to look up the location of a module,
but rather than loading the module, just return the resolved filename.
+### require.cache
+Modules are cached in this object when they are required. By deleting a key
+value from this object, the next `require` will reload the module.
### require.paths
An array of search paths for `require()`. This array can be modified to add

0 comments on commit b96ae66

Please sign in to comment.