EconPapers    
Economics at your fingertips  
 

CACHE: Stata module to cache all other Stata commands

R. Castañeda and Damian Clarke

Statistical Software Components from Boston College Department of Economics

Abstract: The cache command allows for all output and returned elements of any commands to be saved (cached), and reloaded in the future without re-running the command. When cache is used, it will check if the indicated command has been previously issued and cached by the user, and if so reload all elements returned by the command, along with command output, without re-running the command itself. Otherwise, if no previously cached result for the command exists, cache will run the command, and cache all output and returns for future uses. cache is useful if slow or resource-intensive commands are run more than once, as after the first time they are run all output can be simply accessed from the previously saved version, saving on all processing time. cache works with all valid Stata commands and is issued as a prefix before the desired command. cache stores all command output for the future, or loads all elements returned or otherwise altered by the command including (where relevant): elements accessible after the command in the ereturn, sreturn or return lists; graphical output; any alterations to data (unless nodata is specified); any alterations to frames (unless nodata is specified).

Language: Stata
Requires: Stata version 16.1
Keywords: cache; commands (search for similar items in EconPapers)
Date: 2025-03-10
Note: This module should be installed from within Stata by typing "ssc install cache". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/c/cache.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cache.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cache_clean.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cache_examples.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cache_hash.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cache_list.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cache_utils.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cache_setup.do program code (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459434

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-30
Handle: RePEc:boc:bocode:s459434