This library is analogous of Redis class without OOP. Uses sockets.
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);