cache.lot / client
Clietn for Cache.lot
1.0.0
2019-10-29 10:33 UTC
Requires
- php: ^7.2.2
Requires (Dev)
- phpunit/phpunit: ^8.3
This package is auto-updated.
Last update: 2024-10-29 05:53:02 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();