A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/seppo0010/rlite-php below:

seppo0010/rlite-php: PHP bindings for rlite

PHP bindings for rlite. For more information about rlite, go to rlite repository

Before installing rlite-php, you'll need to install rlite

git clone https://github.com/seppo0010/rlite.git
cd rlite
make && sudo make install

Now you can continue with the extension set up.

git clone https://github.com/seppo0010/rlite-php.git
cd phpiredis
phpize && ./configure --enable-rlite
make && sudo make install
$rlite = create_rlite_connection(':memory:');
rlite_command($rlite, ['RPUSH', 'test', '1', '2', '3']);
var_dump(rlite_command($rlite, ['LRANGE', 'test', '0', '-1']));
/*
array(3) {
  [0]=>
  string(1) "1"
  [1]=>
  string(1) "2"
  [2]=>
  string(1) "3"
}
*/
$rlite = create_rlite_connection('./mydb.rld');
rlite_command($rlite, ['SET', 'key', 'value']);

$rlite = create_rlite_connection('./mydb.rld');
var_dump(rlite_command($rlite, ['GET', 'key']));
/*
string(5) "value"
*/

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4