Redis IP Address

Options

Is it possible to identiy the IP address of a request API sender using Redis? Example: i´d like to identify the request ip address and according to the ip address, to set a redis cache.

Tagged:

Best Answers

  • Chris Coleman
    Chris Coleman Administrator

    ADMIN

    Answer ✓
    Options

    You can work with the headers of the request using the $http_headers environment variable; this includes the IP where the request originated.

  • abelgamo
    abelgamo Member
    Answer ✓
    Options

    Thanks a lot Chris. And in this case, I´d get one redis cache specific for each request using the same IP address, correct?

Answers

  • abelgamo
    abelgamo Member
    edited May 2023
    Options

    Thanks a lot Chris. And in this case, I´d get one redis cache specific for each request using the same IP address, correct?