projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58a1d7e
)
document require.cache
author
Ryan Dahl
<ry@tinyclouds.org>
Fri, 3 Jun 2011 06:14:35 +0000
(08:14 +0200)
committer
Ryan Dahl
<ry@tinyclouds.org>
Fri, 3 Jun 2011 06:14:35 +0000
(08:14 +0200)
doc/api/globals.markdown
patch
|
blob
|
history
diff --git
a/doc/api/globals.markdown
b/doc/api/globals.markdown
index
8acecea
..
d2678fd
100644
(file)
--- a/
doc/api/globals.markdown
+++ b/
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