略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 运行时配置

2024-12-21

运行时配置

这些函数的行为受 php.ini 中的设置影响。

tokyo_tyrant 配置选项
名字 默认 可修改范围 更新日志
tokyo_tyrant.default_timeout 2.0 PHP_INI_ALL
tokyo_tyrant.session_salt NULL PHP_INI_ALL
tokyo_tyrant.key_prefix NULL PHP_INI_ALL
tokyo_tyrant.allow_failover 1 PHP_INI_ALL
tokyo_tyrant.fail_threshold 5 PHP_INI_ALL
tokyo_tyrant.health_check_divisor 1000 PHP_INI_ALL
tokyo_tyrant.php_expiration 0 PHP_INI_ALL

这是配置指令的简短说明。

tokyo_tyrant.default_timeout integer

Default timeout when connecting to databases

tokyo_tyrant.session_salt string

The secret that is used to salt session id

tokyo_tyrant.key_prefix string

Prefix all keys with this string. The prefix is transparent to the developer but helps making sure that keys won't collide if multiple applications are using the same database.

tokyo_tyrant.allow_failover integer

Whether to allow session failover in case a server dies.

tokyo_tyrant.fail_threshold integer

How many read/write or connection failures is allowed before server is marked as failed.

tokyo_tyrant.health_check_divisor integer

Defines the divisor for the health check probability. If there are failed servers and the probability matches, the servers are health checked and in case the server seems healthy, it will be added back to the pool.

tokyo_tyrant.php_expiration integer

Whether to use built in session expiration mechanism or delegate the expiration to a lua-script on the server-side.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/tokyo-tyrant.configuration.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3