High-performance distributed sync service and atomic DB. Provides good multi-core support through lock queues, high-performance asynchronous binary network protocols. Can be used for spikes, synchronization, event notification, concurrency control. https://github.com/snower/slock
composer require snower/phslock<?phpnamespaceApp\Console\Commands;
useIlluminate\Console\Command;
useSnower\Phslock\Laravel\Facades\Phslock;
class TestSlockEvent extends Command
{
/** * The name and signature of the console command. * * @var string */protected$signature = 'test:slock-event';
/** * The console command description. * * @var string */protected$description = 'Command description';
/** * Create a new command instance. * * @return void */publicfunction__construct()
{
parent::__construct();
}
/** * Execute the console command. * * @return int */publicfunctionhandle()
{
$event = Phslock::Event("test", 5, 120, false);
$event->set();
return0;
}
}slock uses the MIT license, see LICENSE file for the details.