PHP code example of godtoy / tp5-helper-mixed

1. Go to this page and download the library: Download godtoy/tp5-helper-mixed library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

godtoy / tp5-helper-mixed example snippets


use godtoy/helper/utils/RedisLocker;

$locker=new RedisLocker();
$locker->getLock($key,$wait,$timeout);

//free
$locker->freeLock($key);