Closed rohitcoder closed 4 years ago
Hello curious contributor ! Since it seems to be your first contribution, make sure that you've been:
Bots Everywhere 🧐
Team,
I've gone through your documentation, and previous closed issues, someone also faced this problem and it seems this feature is not available right now.
Hello,
Are you sure that the host is available on the Web-server host ? Phpfastcache currently returns an error detected by the Redis connector (which I can't act on at all). Also did you tried to take a look at the Redis config available in Pfc ?
Cheers, Georges.
Also please, reformat your issue using the default issue template, as I'm not a wizard and I can't guess the version you're using neither your OS/php version, thanks.
Configuration (optional)
My question I was trying to integrate Redis with ElastiCache, I am getting this error.
Fatal error: Uncaught Phpfastcache\Exceptions\PhpfastcacheDriverConnectException: Redis failed to connect with the following error message: "Operation timed out" line 99 in
More info
If i try to connect it phpfastcache local Redis server, it starts working without any error, however if i try this same using an AWS Elasticache Redis server, i get this kind of error.
I am trying to connect with remote Redis server using below config, I don't know maybe be i am connecting in wrong way? I just replaced some chars of my host to redact it, host name format is absolutely same like below config.
$InstanceCache = CacheManager::getInstance('redis', new Config([
'host' => 'redis-random.asdad23.sa.001.aps1.cache.amazonaws.com',
'port' => 6379
]));
Please let me know, What kind of more informations you need to debug this?
Did you tried to connect to your Redis instance outside of Phpfastcache scope ? By using low-level library, just to make sure that Phpfastcache is not involved in your issue.
Hi,
I figured it, actually i was trying to connect with Elasticache nodes outside of aws VPC, its not allowed! Redis was made for faster data access, and you can connect to redis from EC2 / same VPC.
Closing this thread, as resolved :)
Again many many thanks, for this awesome tool to speed boost our web-app performance.
You're welcome ! Happy caching !
Configuration (optional)
My question I was trying to integrate Redis with ElastiCache, I am getting this error.
More info
If i try to connect it phpfastcache local Redis server, it starts working without any error, however if i try this same using an AWS Elasticache Redis server, i get this kind of error.
I am trying to connect with remote Redis server using below config, I don't know maybe be i am connecting in wrong way? I just replaced some chars of my host to redact it, host name format is absolutely same like below config.
Please let me know, What kind of more informations you need to debug this?