Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 2.18 KB

redis.md

File metadata and controls

45 lines (34 loc) · 2.18 KB

Redis

  • Fastest data platform.

  • Open source, advanced key-value store.

  • Provides cloud and on-premise solutions for:

    • Caching.
    • Vector search.
    • NoSQL databases.

    Redis Cache, and RedisSearch Vector

  • Seamlessly fit into any tech stack.

  • "Protected mode" is turned off by default.

  • We use Redis Insight as our dashboard.

  • I use bitnami since it is well documented.

    • It uses AOF persistence.

    • NOTE: The @ is not supported for REDIS_PASSWORD.

    • Note that Redis's default port number is 6379, but we can change it:

      docker run --name redis -e REDIS_PORT_NUMBER=7000 -p 7000:7000 bitnami/redis:latest
  • In the healthcheck command for the Redis we are passing the password and the port that your Redis instance is using within the container:

    1. To learn more about why our healthcheck command is using grep PONG read this Stackoverflow Q&A.
    2. We need to prevent docker compose from parsing environment variables inside our test command, thus the reason we used $$ (ref).

Redis Insight

  • An ideal tool for developers who build with any Redis deployments to optimize their development process.
  • Let you visually browse and interact with data, take advantage of the advanced command line interface and diagnostic tools.
  • Log levels: error, warn, info, http, verbose, debug, silly.

How to connect to the local Redis instance?

Add new Redis server in Redis Insight