Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
document require.cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jun 3, 2011
1 parent 58a1d7e commit b96ae66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/api/globals.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b96ae66

Please sign in to comment.