Execute any command, cache its output and get cached output on subsequent execution https://xn--gckvb8fzb.com
Find a file
2025-12-15 15:03:43 +01:00
.github Add pull_request_template.md 2025-12-15 15:03:43 +01:00
backends Implemented first version 2022-04-28 16:56:52 -05:00
.editorconfig Added .editorconfig 2022-04-28 16:54:28 -05:00
.gitignore Added gitignore 2022-04-28 16:56:40 -05:00
.goreleaser.yaml Fixed typo 2022-11-12 11:32:43 -05:00
cexec.go Implemented stdin forwarding, updated dependencies 2022-08-29 01:16:29 -05:00
go.mod Update Go dependencies 2025-05-14 11:37:39 -05:00
go.sum Update Go dependencies 2025-05-14 11:37:39 -05:00
LICENSE Added LICENSE 2022-04-28 16:57:48 -05:00
README.md Update README.md 2025-07-15 14:02:31 -05:00

cexec

Cached Exec

cexec allows to run commands and cache their output for a specific amount of time, so that re-running the command won't actually run it but instead return the cached output.

cexec will use the path specified in XDG_CACHE_HOME to store its cache. Please make sure it is exported in your ENV.

Examples

Run a program and cache its output for 60 seconds (default setting):

cexec echo Hello World

Run a program and cache its output for 120 seconds:

cexec -t 120 echo Hello World