承接 quillphp/storage-redis 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

quillphp/storage-redis

Composer 安装命令:

composer require quillphp/storage-redis

包简介

Redis storage driver for the Quill PHP framework

README 文档

README

Redis storage driver for the Quill PHP Framework.

Requirements

  • PHP 8.3+
  • ext-redis

Installation

composer require quillphp/storage-redis

Usage

use Quill\Storage\RedisStorage;

$storage = new RedisStorage([
    'host'     => '127.0.0.1',
    'port'     => 6379,
    'database' => 0,
]);

// Write
$storage->set('user:42', $payload);
$storage->set('session:abc', $data, ttl: 3600);

// Read
$value = $storage->get('user:42');
$exists = $storage->has('user:42');

// Delete
$storage->delete('user:42');

// Always close when done
$storage->close();

Configuration

Option Type Default Description
host string '127.0.0.1' Redis server hostname or IP address.
port int 6379 Redis server port.
password string|null null Password for Redis AUTH. Leave null if authentication is disabled.
database int 0 Redis database index (0–15).
prefix string|null null Optional string prepended to every key. Useful for namespacing in shared Redis instances.
timeout float 0.0 Connection timeout in seconds. 0.0 means no timeout.
persistent_id string|null null Enables a persistent connection when set. The value acts as a connection identifier, allowing it to be reused across requests.

License

MIT

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固