cache.lot/client

1.0.0 2019-10-29 10:33 UTC

This package is auto-updated.

Last update: 2024-05-29 04:41:04 UTC


README

Install

composer require cache.lot/client

Example

require "./vendor/autoload.php";
use Cachelot\Action as Cachelot;

//Connect ro server
$Cachelot = new Cachelot("127.0.0.1", 3000);

$Cachelot->set("car","hyundai"); //setting variable
echo $Cachelot->get("car") . "\n"; //getting the variable

echo $Cachelot->show() . "\n"; //getting list the keys

$Cachelot->set("bike",['ktm', 'yamaha', 'suzuki']); //setting variable in type array
print_r($Cachelot->get("bike")); //get value array

$Cachelot->del("bike"); //delete value
$Cachelot->die("bike",5); //setting the lifetime of the variable

$Cachelot->close();