Using both redis and memcached, should I use api session?

If I use both redis and memcached, does it make sense to use the built-in session API?

I understand that ruby ​​on rails can easily use memcached using the built-in api, but I want to use memcached and redis.

If I need to manually access redis, when can I connect to it, for each request?

+3
source share
3 answers

You can still use the Rails session APIs with other stores, including Redis and Memcached . A store is exactly where the session data is stored. The Rails Session APIs still manage sessions for you.

+5

, Redis Memcached ( ), , ( : , memcache redis?)

, API, Rails, .

, Rails, .

- , , .

+3

Ruby . , API Redis memcached .

Redis, , , .

PHP . (.. PHP) . cookie. Redis memcached , / . , API API Redis memcached.

-2

Source: https://habr.com/ru/post/1794623/


All Articles