Sessions Failover with PHP-memcache against memcached

前端 未结 3 1736
青春惊慌失措
青春惊慌失措 2021-02-08 05:42

Colleagues!

I\'m running php 5.3 (5.3.8) with memcache (2.2.6) client library (http://pecl.php.net/package/memcache) to deal with memcached server. My goal is to have f

3条回答
  •  太阳男子
    2021-02-08 06:17

    You must change the hash strategy

    Change your config to

    memcache.hash_strategy  consistent
    

    When you make the hash strategy to consistent memcache copies the data across multiple servers. If one of the servers is down, it retries to copy it on the next request.

提交回复
热议问题