ptrofimov / tinyredisclient
The most lightweight Redis client written in PHP
Installs: 594 392
Dependents: 6
Suggesters: 1
Security: 0
Stars: 89
Watchers: 7
Forks: 9
Open Issues: 6
This package is not auto-updated.
Last update: 2025-02-01 14:33:18 UTC
README
TinyRedisClient is the most lightweight Redis client written in PHP
Key points
- Full-featured: supports all Redis commands
- Simple: just Redis protocol, nothing more
- Really tiny: only 50 lines of code
- Requires nothing: pure PHP implementation
Usage example
$client = new TinyRedisClient( 'host:port' ); $client->set( 'key', 'value' ); $value = $client->get( 'key' );
Full list of commands you can see on http://redis.io/commands
Download and enjoy!
TinyRedisClient ![Русская версия](https://camo.githubusercontent.com/7991ba1234fa7849745cecada71753871dc8b542d66991e0279c5d4a728491e0/687474703a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f656e2f7468756d622f662f66332f466c61675f6f665f5275737369612e7376672f323270782d466c61675f6f665f5275737369612e7376672e706e67)
TinyRedisClient - самый легковесный клиент для Redis, написанный на PHP
Основные моменты
- Полнофункциональный: поддерживает все команды Redis
- Простой: только протокол Redis, ничего лишнего
- Крошечный: всего 50 строк кода
- Нетребовательный: написан на чистом PHP
Пример использования
$client = new TinyRedisClient( 'хост:порт' ); $client->set( 'ключ', 'значение' ); $value = $client->get( 'ключ' );
Полный список команд Redis вы можете найти на http://redis.io/commands
Скачивайте и наслаждайтесь!
Keywords: redis, storage, nosql, php, client, lightweight, light, easy, simple, small, tiny, protocol