PHP code example of gilbitron / hoard

1. Go to this page and download the library: Download gilbitron/hoard 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/ */

    

gilbitron / hoard example snippets



$cache = new Hoard\Hoard();

$cache = new Hoard\Hoard($drawer = 'file', $options = [], $args = []);

$cache->has($key);

$cache->get($key, $default = null);

$cache->pull($key, $default = null);

$cache->put($key, $value, $minutes);

$cache->add($key, $value, $minutes);

$cache->forever($key, $value);

$cache->forget($key);

$cache->flush();