PHP code example of momentohq / laravel-cache

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

    

momentohq / laravel-cache example snippets


'providers' => [
    // ...
    Momento\Cache\MomentoServiceProvider::class
];

'default' => env('CACHE_DRIVER', 'momento'),

'stores' => [
        'momento' => [
            'driver' => 'momento',
            'cache_name' => env('MOMENTO_CACHE_NAME'),
            'default_ttl' => 60,
        ],
],