nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.82k stars 307 forks source link

hiredis && redis #208

Closed chenshiy1 closed 2 years ago

chenshiy1 commented 2 years ago

Hello author,first of all Thank you for your work and dedication。and I have a question,How does webdis use native Redis instead of Hiredis,thanks for your reply。

nicolasff commented 2 years ago

Hello @chenshiy1,

I don't understand your question. I'm not sure what "native Redis" is but you can't really compare Redis and Hiredis: Redis is an in-memory key-value store and Hiredis is a C library used to connect to Redis and query it.

Webdis uses Hiredis to query Redis.

Something like this:


  ┌───────────────────────────┐            ┌──────────────────┐
  │                           │            │                  │
  │             ┌──────────┐  │   Query    │                  │
  │             │          ├──┼───────────►│                  │
  │   Webdis    │ Hiredis  │  │            │      Redis       │
  │             │          │◄─┼────────────┤                  │
  │             └──────────┘  │  Response  │                  │
  │                           │            │                  │
  └───────────────────────────┘            └──────────────────┘

Does this answer your question?