yatsenkolesh/redisphp-native

Native php library for redis

0.2.3 2018-02-25 01:26 UTC

This package is not auto-updated.

Last update: 2024-11-18 23:02:03 UTC


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