document require.cache

pull/22966/head
Ryan Dahl 2011-06-03 08:14:35 +02:00
parent 58a1d7ec30
commit b96ae6674d
1 changed files with 6 additions and 0 deletions

View File

@ -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