Download the PHP package pardnchiu/redis-cli without Composer
On this page you can find all versions of the php package pardnchiu/redis-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pardnchiu/redis-cli
More information about pardnchiu/redis-cli
Files in pardnchiu/redis-cli
Package redis-cli
Short Description Lightweight PHP Redis client supporting cache operations, automatic connection management, and complete Redis functionality. Built on native Redis extension, providing stable and reliable cache operation experience.
License MIT
Homepage https://pardn.io
Informations about the package redis-cli
Redis CLI
Lightweight PHP Redis client supporting cache operations, automatic connection management, and complete Redis functionality.
Built on native Redis extension, providing stable and reliable cache operation experience.
- Three Core Features
- Automatic Connection Management
- Multi-Database Support
- Stable Connection
- Features
- Usage
- Installation
- Environment Configuration
- Basic Usage
- API Reference
- Basic Operations
- Hash Operations
- List Operations
- Set Operations
- Management Operations
- Error Handling
- License
- Author
Three Core Features
Automatic Connection Management
Intelligent connection pool management, automatically establishes and maintains Redis connections, supports persistent connections for improved performance
Multi-Database Support
Flexible database selection mechanism, supports Redis multi-database operations to meet different business scenario requirements
Stable Connection
Built-in retry mechanism and error handling, ensuring reliability in unstable network environments
Features
- Environment Variable Configuration: Flexible environment variable settings, supports multi-environment deployment
- Persistent Connections: Uses persistent connections to improve performance and reduce connection overhead
- Automatic Retry: Built-in retry mechanism handles network fluctuations and temporary connection failures
- Complete Redis Operations: Supports Redis data types including strings, hashes, lists, sets, etc.
- Multi-Database Support: Supports Redis multi-database operations, flexible management of different business data
- Security Authentication: Supports password authentication to ensure connection security
- Stateless Design: Automatic connection management and cleanup
Usage
Installation
Environment Configuration
Basic Usage
API Reference
Basic Operations
-
get($db, $key)- Get string value -
set($db, $key, $content, $expire = null)- Set string value -
exists($db, $key)- Check if key exists -
delete($db, $key)- Delete key -
ttl($db, $key)- Get expiration time keys($db, $pattern)- Search key names
Hash Operations
List Operations
Set Operations
Management Operations
Error Handling
Connection Status Check
Performance Monitoring
License
This project is licensed under the MIT License.
Author
邱敬幃 Pardn Chiu
©️ 2024 邱敬幃 Pardn Chiu
All versions of redis-cli with dependencies
ext-redis Version *