lisgroup / redis-pool
The lisgroup Redis-Connection-Pool
1.0.0
2019-09-27 09:03 UTC
Requires
- php: ^7.0
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
- src/AbstractPool.php -- Connection pool encapsulates abstract classes
- src/RedisPool.php -- Cooperative Redis Connection Pool
- demo.php Example file