https://github.com/yatsenkolesh/redisphp-native
PHP Redis client without OOP
https://github.com/yatsenkolesh/redisphp-native
redis redis-client redis-database redis-php
Last synced: 4 months ago
JSON representation
PHP Redis client without OOP
- Host: GitHub
- URL: https://github.com/yatsenkolesh/redisphp-native
- Owner: yatsenkolesh
- License: mit
- Created: 2017-03-05T00:58:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T16:42:11.000Z (about 8 years ago)
- Last Synced: 2025-11-20T02:22:27.710Z (6 months ago)
- Topics: redis, redis-client, redis-database, redis-php
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# redisphp-native
This library is analogous of Redis class without OOP. Uses sockets.
#### To install with composer:
```text
composer require "yatsenkolesh/redisphp-native"
```
Get value by key:
```php
Redis\connect('127.0.0.1', 6379);
Redis\get('mykey');
```
After connection to redis this connection will be used for all commands.
Delete:
```php
Redis\del('mykey');
```
Set key value:
```php
Redis\set('mykey', 'HELLO', 360);
```
Check exists key:
```php
Redis\exists('mykey);
```