teekay12/redis_extension 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

teekay12/redis_extension

Composer 安装命令:

composer require teekay12/redis_extension

包简介

A simple php class that receives phpredis configuration on instantiation and connects automatically

README 文档

README

This is a simple PHP Class which extends PHPRedis Class which receives redis configuration options on instantiation and connect automatically

#To Install

Step 1 Run composer require teekay12/redis_extension to install,

Step 2 CD into the docker directory to run docker compose up to set up the development environment

Import the class, see example below

require 'RedisProvider.php';
use Teekay12\RedisExtension\RedisProvider;

once the step above is completed, you can go ahead with your configuration options

    $options = [
        'host' => "172.25.0.1",
        'port' => 6379,
        'enable_calling_class' => false,
        'connection_timeout' => 1
        'auth' => [
            'username' => 'value',
            'password' => 'value'
        ]
    ];

Web server IP & port : 172.25.0.1:6379

To connect simply call the RedisProvider class create method and pass the options array

RedisProvider::create($options)

this will create an object which you can use to set variables.

Happy Coding !!!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固