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-12-16 23:26:34 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);