hockeymonkey96's avatar

Using Redis for an Ecommerce Site, no SQL?

I just got a new job at an Ecommerce site builder in Japan (but I'm a load/pentester) and noticed that there are no lines pertaining to SQL in the .env file but noticed the following:

CACHE_DRIVER=redis SESSION_DRIVER=redis

#redis REDIS_HOST=something_on_a_cloud_service.com REDIS_PASSWORD=null REDIS_PORT=6379 REDIS_MAINTENANCE_HTML_KEY=secret-html REDIS_MAINTENANCE_ALLOW_IPS_KEY=secret-ips

In the migration folder, there is only the CreateUsersTable and CreatePasswordsResetsTable so I know this Redis thing is totally different. I've gone through every folder and couldn't find anything related to storing stuff in the DB or getting stuff from it. There's also all this SDK and API stuff I don't know much about yet. Does anyone have any clue as to how Redis is used in place of MySQL on a Laravel EC site?

0 likes
2 replies
Wouter.D's avatar

There is no DB_CONNECTION in the .env?

You can check config/database.php (at the bottom). Redis should be configured here.

hockeymonkey96's avatar

Thanks! I found this in the database.php file:

'redis' => [

    'client' => 'predis',

    'default' => [
        'host' => env('REDIS_HOST', '127.0.0.1'),
        'password' => env('SECRET', null),
        'port' => env('REDIS_PORT', 6379),
        'database' => 0,
    ],

Please or to participate in this conversation.