PHP code example of modulework / cachework

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

    

modulework / cachework example snippets

include_once 'cache.php'; 
put($key, $value, $serialize = true, $override = true)
get($key, $value, $expire, $default = null)
forget($key)
remember($key, $value, $serialize = true, $override = true)
put($key, $value, $serialize = true, $override = true)
$key
$value
file_get_contents()
get($key, $expire, $default = null)
$key
put()
put()
put()
Cache::remember($key, $value, $expire, $serialize = true, $override = true);
put()