An open API service indexing awesome lists of open source software.

https://github.com/yatsenkolesh/redisphp-native

PHP Redis client without OOP
https://github.com/yatsenkolesh/redisphp-native

redis redis-client redis-database redis-php

Last synced: 4 months ago
JSON representation

PHP Redis client without OOP

Awesome Lists containing this project

README

          

# redisphp-native

This library is analogous of Redis class without OOP. Uses sockets.

#### To install with composer:
```text
composer require "yatsenkolesh/redisphp-native"
```

Get value by key:
```php
Redis\connect('127.0.0.1', 6379);
Redis\get('mykey');
```

After connection to redis this connection will be used for all commands.

Delete:
```php
Redis\del('mykey');
```

Set key value:
```php
Redis\set('mykey', 'HELLO', 360);
```

Check exists key:
```php
Redis\exists('mykey);
```