For various reasons, you can’t just compile Redis on Windows. However, if you’re not on a unix-like system, things get complicated quickly. For most developers on these platforms, that’s not a huge burden. Problem: Can’t built Redis from sourceįor those of us on Linux or macOS, building Redis from source involves having the relevant compilers and tools on your system and running make, which produces both the CLI and the Redis server. In this post, I’ll share how to get redis-cli without installing or having to make a full Redis server, but first let’s look at a couple scenarios. But what happens if you can’t (or don’t want to) build Redis from source? It means you also don’t have redis-cli and building an entire database from source just to get access to the command-line interface (CLI) utility is overkill and sometimes not even an option. The source for redis-cli is included in the Redis github repository and is automatically compiled when you build Redis from source. However, getting this jewel of a tool is not straightforward for many. Redis-cli by itself isn’t that complicated – it’s a REPL (read–eval–print loop) that speaks to the Redis server. If I didn’t have redis-cli, understanding Redis’ data structures and testing connections would be far more complicated, and I probably would’ve stopped using Redis long ago. I probably spend more time than most in redis-cli, because I find it invaluable when I’m writing software or getting to know a new module.
0 Comments
Leave a Reply. |