PHP code example of avoutic / web-framework-redis

1. Go to this page and download the library: Download avoutic/web-framework-redis 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/ */

    

avoutic / web-framework-redis example snippets


return [
    'definition_files' => [
        '../vendor/avoutic/web-framework/definitions/definitions.php',
        '../vendor/avoutic/web-framework-redis/definitions/definitions.php',
        'app_definitions.php',
    ],
];

return [
    Cache::class => DI\autowire(RedisCache::class),
];



return [
    'hostname' => env('REDIS_HOSTNAME', 'localhost'),
    'port' => env('REDIS_PORT', 6379),
    'password' => env('REDIS_PASSWORD', '')
]