PHP code example of klavax / laravel-wildcard-cache
1. Go to this page and download the library: Download klavax/laravel-wildcard-cache 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/ */
klavax / laravel-wildcard-cache example snippets
Cache::forget("item_{any}");
Cache::forget("someOtherItem_{any}_nested_{any}");
Cache::memo()->forget("this_{any}_works")
json
{
"autoload": {
"exclude-from-classmap": [
"vendor/laravel/framework/src/Illuminate/Cache/ApcStore.php",
"vendor/laravel/framework/src/Illuminate/Cache/ApcWrapper.php",
"vendor/laravel/framework/src/Illuminate/Cache/ArrayStore.php",
"vendor/laravel/framework/src/Illuminate/Cache/DatabaseStore.php",
"vendor/laravel/framework/src/Illuminate/Cache/SessionStore.php"
]
}
}