Dependency Management Got Awesome
CommonJS and AMD Compliant dependency loader for modern web apps
Inject.setExpires
0.7.x
Inject.setExpires(seconds);
Specifies a number of seconds that items should persist in localStorage. A value of 0 can be used to ensure no files are retained in localStorage, useful for development.
Setting a value of 0 while items are in localStorage will cause the items in localStorage to be ignored.
- CommonJS Interface
- AMD Interface
- The Inject API
- Inject.addContentRule
- Inject.addFetchRule
- Inject.addFileRule
- Inject.addModuleRule
- Inject.addPackage
- Inject.createContext
- Inject.disableAMD
- Inject.disableSourceUrls
- Inject.disableSuffixes
- Inject.enableAMD
- Inject.enableSourceUrls
- Inject.enableSuffixes
- Inject.reset
- Inject.setCacheKey
- Inject.setCrossDomain
- Inject.setExpires
- Inject.setModuleRoot
- require.run
- How To and Tutorials