cache.lot / client
Clietn for Cache.lot
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/cache.lot/client
Requires
- php: ^7.2.2
Requires (Dev)
- phpunit/phpunit: ^8.3
This package is auto-updated.
Last update: 2025-09-29 02:49:51 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();