{"repo":"dimo414/bkt","free":true,"listed":false,"github":"https://github.com/dimo414/bkt","clone":"git clone https://github.com/dimo414/bkt.git","description":"a subprocess caching utility, available as a command line binary and a Rust library.","language":"Rust","stars":355,"topics":["rust","subprocess","caching","cli","bash","shell","fzf","cache","memoization"],"license":"MIT","category":"cli-tools","readme_excerpt":"bkt bkt (pronounced \"bucket\") is a subprocess caching utility written in Rust, inspired by bash-cache. Wrapping expensive process invocations with bkt allows callers to reuse recent invocations without complicating their application logic. This can be useful in shell prompts, interactive applications such as fzf , and long-running programs that poll other processes. bkt is available as a standalone binary as well as a Rust library. See https://docs.rs/bkt/ for library documentation. This README covers the bkt binary. Installation Run cargo install bkt to compile and install bkt locally. You will need to install cargo if it's not already on your system. Pre-compiled binaries for common platforms are attached to each release (starting with 0.5). Please open an issue or send a PR if you would like releases to include binaries for additional platforms. Package manager support is being tracked here; volunteers are welcome. Usage bkt is easy to start using - simply prefix the command you intend to cache with bkt --ttl=[some duration] -- , for example: When bkt is passed a command it hasn't seen before (or recently) it executes the command synchronously and caches its stdout, stderr, and exit code. Calling bkt again with the same command reads the data from the cache and outputs it as if the command had been run again. Cache Lifespan Two flags, --ttl and --stale , configure how long cached data is preserved. The TTL (Time to Live) specifies how long cached data will be used. Once th","default_branch":null,"files":null,"tree":[],"storefront":"/r/dimo414","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dimo414/bkt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}