omailson / dotfiles

mi casa, mi dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfiles

This is intended for personal use only. Use at your own risk.

Commands

runcached

Cache long running commands

runcached -- a_long_running_command with some args # first time: long running
runcached -- a_long_running_command with some args # cached: fast

runcached -- a_long_running_command changing the arguments # counts as another command: long running
MY_ENVVAR="something" runcached -- a_long_running_command with some args # this counts as another command as well

# Cache stays for up to RUNCACHED_MAX_AGE seconds
runcached -- a_long_running_command with some args # cached: fast
runcached -- a_long_running_command changing the arguments # cached: fast

# Pipes are not counted
runcached -- a_long_running_command with some args | fast_running_pipe # it will use a_long_running_command cached response, but it will not cache fast_running_pipe

About

mi casa, mi dotfiles


Languages

Language:Python 57.3%Language:Shell 41.9%Language:Roff 0.8%Language:Vim Script 0.0%