seaman/redis
最新稳定版本:v1.0.1
Composer 安装命令:
composer require seaman/redis
包简介
Redis and Redis Cluster plugin for Seaman
README 文档
README
Redis and Redis Cluster plugin for Seaman.
Installation
composer require seaman/redis
Or via Seaman CLI:
seaman plugin:install seaman/redis
Services
Redis Standalone
Single Redis instance with optional persistence.
seaman service:add redis
Redis Cluster
6-node Redis Cluster (3 masters + 3 replicas) with automatic initialization.
seaman service:add redis-cluster
Commands
| Command | Description |
|---|---|
redis:cli |
Open interactive redis-cli session |
redis:info [--section] |
Display Redis server information |
redis:keys [pattern] |
List keys matching a pattern |
redis:flush [--force] |
Flush all Redis keys |
redis:monitor |
Monitor Redis commands in real-time |
redis:cluster:info |
Display Redis Cluster information |
redis:cluster:nodes |
Display Redis Cluster nodes |
Examples
# Open Redis CLI seaman redis:cli # Open Redis CLI on cluster seaman redis:cli --cluster # Show memory info seaman redis:info --section memory # List all user keys seaman redis:keys "user:*" # Monitor commands in real-time seaman redis:monitor # Flush all data (with confirmation) seaman redis:flush # Flush without confirmation seaman redis:flush --force # Show cluster status seaman redis:cluster:info seaman redis:cluster:nodes
Configuration
In your seaman.yaml:
plugins: seaman/redis: version: '7-alpine' # Redis Docker image tag port: 6379 # Standalone Redis port cluster_base_port: 6380 # Starting port for cluster nodes (uses 6 consecutive ports) persistence: false # Enable AOF persistence
Available Versions
7-alpine(default)6-alpinealpinelatest
Requirements
- PHP 8.4+
- Seaman 1.1.0+
License
MIT
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-26