bash-cache icon indicating copy to clipboard operation
bash-cache copied to clipboard

Transparent caching layer for bash functions; particularly useful for functions invoked as part of your prompt.

Results 8 bash-cache issues
Sort by recently updated
recently updated
newest added

Sometimes the expensive command I run fails. e.g. A brief network connectivity issue that I notice and fix after running the command. The problem when using bc::cache is that the...

According to [this post](https://unix.stackexchange.com/a/18679/19157) `ln -sfn` isn't actually atomic, despite the comment [here](https://github.com/dimo414/bash-cache/blob/59bcad6/bash-cache.sh#L165). Need to confirm this is actually broken and then fix, presumably to the `rename` approach described in...

**[Original report](https://bitbucket.org/dimo414/bash-cache/issue/16) by Michael Diamond (Bitbucket: [dimo414](https://bitbucket.org/dimo414)).** ---------------------------------------- @bedge asked for zsh support in #15. Supporting other shells would be nice, but would require user contributions as it's not a...

enhancement
minor

Hi, I was a bit saddened when I realized that `bc::memoize` would only keep the freshest invocation in memory: ``` foo() { … } && bc::memoize foo foo 3 #...

```shell $ foo() { echo 'Checking $1'; : "${1:?}"; } $ foo Checking $1 -bash: 1: parameter null or not set $ bc::cache foo $ foo $ echo $? 1...

`bc::warm::my_function` can be used to asynchronously warm a cached value, but there's no built-in support for triggering warming (e.g. on a schedule). It would be nice to be able to...

enhancement

**[Original report](https://bitbucket.org/dimo414/bash-cache/issue/11) by Michael Diamond (Bitbucket: [dimo414](https://bitbucket.org/dimo414)).** ---------------------------------------- bash-cache isn't very interesting or memorable. Notably, [bash cache] searches on Google uncover lots of discussion about the shell caching commands and...

major
proposal

**[Original report](https://bitbucket.org/dimo414/bash-cache/issue/8) by Michael Diamond (Bitbucket: [dimo414](https://bitbucket.org/dimo414)).** ---------------------------------------- We could [open a file descriptor](https://www.tldp.org/LDP/abs/html/x17974.html#USINGEXECREF) to `/dev/null` and discard output to that, instead of separately writing to `/dev/null` repeatedly, which means...

enhancement
minor