Zend Redis Cache 1.5.4

Нет прав для скачивания
  • Техническое обновление
Update redis stats display to match other stats UI theming
Display redis slave stats
Ability to drill down to each slave's stats
  • Поддержка XenForo 1.5.16
  • Исправление ошибок
  • Техническое обновление
  • Исправление ошибок
  • Добавлены новые функции
  • Исправление ошибок
  • Major update to redis library fixing a number of inconsistencies between pure php & php-extension modes.
    • This is not a breaking change for my redis add-ons.
    • All unit tests should pass
    • For custom code, the following redis commands have breaking changes:
      • pipeline/multi/exec fixes
        • Impacts; hmget/hgetall/info/ttl/scan/sscan/hscan/zscan/zrangebyscore/zrevrangebyscore/zrange/zrevrange
      • zrange/zrevrange in php extension mode now works.
      • hmget now returns consistent data format for all combinations of; normal/pipeline/multi with pure-php/extension.
      • Errors from Redis are now prefixed with "ERR " in both pure-php like from the php extension.
      • Improved logic around closing the connection to Redis (should make persistent mode stable)
Known issue:
  • In php 7.x, with the php extension, pub/sub subscribing can cause memory corruption.
    • 3.1.4RC3 is known to fix this.
  • Синхронизация с последней версией redis для PHP
  • По умолчанию поддержка тегов Zend Cache отключена. Вам нужно их включить.

Код:
$config['cache']['backendOptions']['enable_tags'] = true;
  • Добавлены новые функции
  • Исправление ошибок
Update backend redis connector library.
  • Bugfix pure php connector, only impacts custom add-ons directly calling the redis library.
  • load_from_slaves option can now be 2 to include the master in the list of read-only instances to connect to.
This is a breaking change if you use sentinel support

The following configuration keys have been renamed:
  • sentinel_master_set renamed to sentinel_master
  • slave-select renamed to slave_select_callable
  • sentinel_persistent renamed to sentinel, which is now an arrary; ie array('persistent' => true)
A new option has been introduced:
  • sentinel_master_verify
    • Checks the redis master is actually a master, not required if you are loading from a slave or can accept errors when the master redis instance falls over.
  • The sentinel option supports the following arguments, if the option doesn't exist falls back to the parent option in 'backendOptions':
    • persistent
    • connect_retries
    • read_timeout
    • timeout

Старая конфигурация
Код:
$config['cache']['backendOptions'] = array(
...
        'sentinel_master_set' => 'mymaster',
        'sentinel_persistent' => true,
        'slave-select' => 'preferLocalSlaveLocalDisk',
...
Новая конфигурация
Код:
$config['cache']['backendOptions'] = array(
...
        'sentinel_master' => 'mymaster',
        'sentinel' => array('persistent' => true),
        'slave_select_callable' => 'preferLocalSlaveLocalDisk',
...
  • Исправление ошибок
  • Добавлены новые опции

  • Option "slave-select" can now be a closure or a string. Default is "preferLocalSlave".
    • String options:
      • preferLocalSlave - fetches IP's via a shell exec
      • preferLocalSlaveLocalDisk - fetches IP's via a shell exec, but caches to /tmp/local_ips
      • preferLocalSlaveAPCu - fetches IP's via a shell exec, but caches to APCu
        • NOT RECOMMENDED
  • New option 'sentinel_persistent' (true/false, uses 'persistent' option if 'sentinel_persistent' is null or does not exists)
    • Allow separate persistent connections options for sentinel and for master/slaves.
  • Обновление параметров
  • Update examples of how to get a master/slave instance
    • Document load_from_slave option
  • Load cached forum thread count from slave redis if possible