yatsenkolesh / redisphp-native
Native php library for redis
Installs: 78
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/yatsenkolesh/redisphp-native
README
This library is analogous of Redis class without OOP. Uses sockets.
To install with composer:
composer require "yatsenkolesh/redisphp-native"
Get value by key:
Redis\connect('127.0.0.1', 6379); Redis\get('mykey');
After connection to redis this connection will be used for all commands.
Delete:
Redis\del('mykey');
Set key value:
Redis\set('mykey', 'HELLO', 360);
Check exists key:
Redis\exists('mykey);