2019.6.12 • Published 5 years ago

exec-cache v2019.6.12

Weekly downloads
1
License
Unlicense
Repository
-
Last release
5 years ago

npm.io

cache exec outputs

Installation

$ [sudo] npm i -g exec-cache

How it works

$EXEC_CACHE/<hash>.out
$EXEC_CACHE/<hash>.err
$EXEC_CACHE/<hash>.status

Config

$EXEC_CACHE, default is $EXEC_CACHE/exec-cache, e.g. ~/.cache/exec-cache

$ export EXEC_CACHE="custom-path"

Scripts usage

commandusage
exec-cacheusage: exec-cache command [arguments]

Examples

example #1: cache psql queries

$ value="$(exec-cache psql -At -c "SELECT ..." dbname)"

example #2: clear cache

$ export EXEC_CACHE=~/.cache/exec-cache/psql # custom folder
$ rm -fr "$EXEC_CACHE"
$ value="$(exec-cache psql -At -c "SELECT ..." dbname)"
2019.6.12

5 years ago

2019.6.9

5 years ago

2019.3.24

5 years ago

2019.3.23

5 years ago