Skip to content

yatsenkolesh/redisphp-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

redisphp-native

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);