PHP code example of gap-db / orm-cache

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

    

gap-db / orm-cache example snippets



return [
    // Safan Framework default modules route
    'Safan'         => 'vendor/safan-lab/safan/Safan',
    'SafanResponse' => 'vendor/safan-lab/safan/SafanResponse',
    // Write created or installed modules route here ... e.g. 'FirstModule' => 'application/Modules/FirstModule'
    'GapOrm'      => 'vendor/gap-db/orm/GapOrm',
    'GapOrmCache' => 'vendor/gap-db/OrmCache/GapOrmCache',
];


'init' => [
    ...
    'gapOrmCache' => [
        'class'  => 'GapOrmCache\GapOrmCache',
        'method' => 'init',
        'params' => [
            'prefix' => 'prefix',
            'driver' => 'memcache'
        ]
    ],
    ...
]