0

How do you install RedisJSON on a macOSx with brew?

How do you enable modules on redis without having to compile redis? I dont want to use docker clients

Merlin
  • 24,552
  • 41
  • 131
  • 206

1 Answers1

4

Redis Stack is probably the easiest way to do this. It has more than just RedisJSON as it includes RediSearch, RedisGraph, RedisBloom, and RedisTimeSeries but will work just fine.

First, tap the Redis Stack Homebrew tap:

brew tap redis-stack/redis-stack

Next, run brew install:

brew install redis-stack

To start Redis you can run:

redis-stack-server

There are some details if you have an existing Redis installation on your Mac that you'll need to follow. Full instructions, including those details, are here.

Guy Royse
  • 2,739
  • 12
  • 9
  • How do I get brew to start redis-stack-server on startup now. I had redis starting on boot. " Successfully stopped `redis` (label: homebrew.mxcl.redis)". I dont want both running. – Merlin Dec 01 '22 at 01:27
  • 1
    That's a good question. I've asked internally at Redis and will report back what I find out. Frankly, this is why I just use Docker. ;) – Guy Royse Dec 01 '22 at 14:42
  • Also, can you please link performance metrics for native vs stack-server redis. What do I give up by using stack-server in terms of preformace/pipelining.. – Merlin Dec 01 '22 at 20:55
  • Redis Stack is just Redis with modules installed. Performance will be the same. – Guy Royse Dec 02 '22 at 15:11
  • @Guy_Royse (name format makes it hard to tag you) can you take a look at this please,, https://stackoverflow.com/questions/74681165/redis-javascript-zadd-is-not-a-function – Merlin Dec 05 '22 at 01:45
  • Redis doesn't support service installs via homebrew. It did initially, but homebrew removed a feature and so we had to pull it. – Guy Royse Dec 05 '22 at 14:52
  • "by service install" you mean start/stop/restart. what would be a workaround a bash script on startup? Need to manage local: mac/linux, cloud: linux – Merlin Dec 05 '22 at 21:21