I have 2 Memcached Servers e.g serv1 and serv2 Both Work Fine
But when i use it with Laravel Cache,
It works fine when i use serv1.
But when i change the server to serv2. It does not write the Session
I use 1 server at a time. I change the servers IPs.
serv2 works fine when i store data manually and retrieve it, it only gives me issue when i am using it with Laravel.
Both Servers have Memcached Service Installed.
Laravel's code cannot be wrong as it works on serv1.
I cant seem to figure out the problem, been a week since this issue.
Laravel version is 5.6. OS is CentOs THis is my Laravel's Cache.php
the servers are in my env file
'memcached' => [
'driver' => 'memcached',
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
'sasl' => [
env('MEMCACHED_USERNAME'),
env('MEMCACHED_PASSWORD'),
],
'options' => [
// Memcached::OPT_CONNECT_TIMEOUT => 2000,
],
'servers' => [
[
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
'port' => env('MEMCACHED_PORT', 11211),
'weight' => 100,
],
I have used serv2 to store sessions from vanilla PHP and it is working fine there.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire