ethitter/wp-redis-user-session-storage
Composer 安装命令:
composer require ethitter/wp-redis-user-session-storage
包简介
Store WordPress session tokens in Redis rather than the usermeta table. Requires the Redis PECL extension.
README 文档
README
Contributors: ethitter
Donate link: https://ethitter.com/donate/
Tags: user sessions, session tokens, session storage
Requires at least: 4.0
Tested up to: 6.0
Stable tag: 0.2
Requires PHP: 5.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Store WordPress session tokens in Redis rather than the usermeta table.
Description
Store WordPress user session tokens in Redis rather than the usermeta table.
This plugin was previously known as WP Redis User Session Storage and was renamed to comply with WordPress.org naming constraints. The previous class name is aliased to support existing extensions.
Installation
- Install and configure Redis.
- Install the Redis PECL module.
- Activate the plugin network-wide or by placing it in
mu-plugins. - By default, the script will connect to Redis at
127.0.0.1:6379. See the Connecting to Redis section for further options.
Frequently Asked Questions
Connecting to Redis
By default, the plugin uses 127.0.0.1 and 6379 as the default host and port, respectively, when creating a new client instance; the default database of 0 is also used.
Specify any of the following constants to set the necessary, non-default connection values for your Redis instance:
WP_REDIS_USER_SESSION_HOST- Hostname or IP of the Redis server, defaults to127.0.0.1.WP_REDIS_USER_SESSION_PORT- Port of the Redis server, defaults to6379.WP_REDIS_USER_SESSION_SOCKET- Path to a Unix socket file for the Redis server, if available. Takes precedence over the port value when set.WP_REDIS_USER_SESSION_AUTH- Password for the Redis server, if required.WP_REDIS_USER_SESSION_DB- Database number to use for the Redis server, defaults to0.WP_REDIS_USER_SESSION_SERIALIZER- Serializer to use for the Redis server, defaults toRedis::SERIALIZER_PHP.
Changelog
0.2
- Add cleanup routine for usermeta storage.
- Prepare plugin for WordPress.org release.
0.1
- Initial public release
ethitter/wp-redis-user-session-storage 适用场景与选型建议
ethitter/wp-redis-user-session-storage 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 44 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 07 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「session storage」 「user sessions」 「session tokens」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ethitter/wp-redis-user-session-storage 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ethitter/wp-redis-user-session-storage 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ethitter/wp-redis-user-session-storage 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A SDK for working with B2 cloud storage.
Small library to access Microsoft Windows Azure Blob Storage with a Service or a StreamWrapper.
Secure session middleware for Slim 3 framework
Non-I/O blocking PHP SessionHandler implementation using Nette/Caching with DI Extension for Nette framework
Magento - Clean up session extension
Standalone replacement for php's native get_browser() function
统计信息
- 总下载量: 44
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2022-07-10