lisgroup/redis-pool

The lisgroup Redis-Connection-Pool

1.0.0 2019-09-27 09:03 UTC

This package is auto-updated.

Last update: 2024-04-28 19:06:36 UTC


README

中文文档

Project description

Redis Pool is a Redis database connection pool developed based on PHP extended Swoole.

Project introduction

Cooperative Redis database connection pool based on Swoole4 implementation.

Instructions for Use

1. composer Installation
composer require lisgroup/redis-pool
2. Copy file startup script

Copy the sample code demo.php to the project directory and start the script.

php demo.php
3. test case

Browser access: http://localhost:9501/

Document description

  1. src/AbstractPool.php -- Connection pool encapsulates abstract classes
  2. src/RedisPool.php -- Cooperative Redis Connection Pool
  3. demo.php Example file