Welcome! Log In Create A New Profile

Advanced

Re: Redis storage for cache

Sergey A. Osokin
December 29, 2019 04:00AM
Hi Ragnar,

hope you're doing well.

On Sat, Dec 28, 2019 at 10:58:06AM +0100, Ragnar Rova wrote:
> I want to use redis as the storage for the cache instead of the filesystem.
>
> I found a third-party module which seems to offer this:
> https://github.com/openresty/srcache-nginx-module#caching-with-redis, is
> this the recommended solution? Hot requests should be served from memory,
> with redis as a fallback and use to populate the cache on startup.

The solution you've mentioned uses ngx_http_redis module to get data from
a redis database. Usually, it's possible to increase a stability and per-
formance of a web service by pushing a static content (html, graphics, binary
files) to a redis database and reroute requests from an application server
to the redis.

Please visit https://github.com/osokin/ngx_http_redis, Example 1 for details.

--
Sergey Osokin
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Redis storage for cache

Ragnar Rova December 28, 2019 05:00AM

Re: Redis storage for cache

Sergey A. Osokin December 29, 2019 04:00AM

Re: Redis storage for cache

Ragnar Rova December 29, 2019 11:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready