It seems that in my raw PHP application I've been using memcache, not memcached (but it worked on Yii as memcached). I've been initializing it like $memcached = new Memcache;
In php.ini it's set like this: extension=php_memcache.dll
Anyone used memcached on Windows?
Did you activate the memcache in laravel?
In the app/config/cache.php file you need to specify the memcache support:
<?php
return array(
/*
|--------------------------------------------------------------------------
| Default Cache Driver
|--------------------------------------------------------------------------
|
| This option controls the default cache "driver" that will be used when
| using the Caching library. Of course, you may use other drivers any
| time you wish. This is the default when another is not specified.
|
| Supported: "file", "database", "apc", "memcached", "redis", "array"
|
*/
'driver' => 'file',
Hope it helps you.
Yes, the driver set to be 'memcached'. The issues is that Memcached is not installed on my Windows PC (I have memcache, not memcached) and I couldn't find a way to set it up on Windows.
andrejmk said:
Yes, the driver set to be 'memcached'. The issues is that Memcached is not installed on my Windows PC (I have memcache, not memcached) and I couldn't find a way to set it up on Windows.
Hi friend, see the following link
http://stackoverflow.com/questions/14777857/how-to-install-and-use-memcached-in-windows-for-php
Hope it helps you
Unfortunately, no. It's a way to install Memcache, which can be used as Memcached. Outside of Laravel, I'm using it as new Memcache; but Laravel is strictly using new Memcached and it's not working on Windows.
andrejmk said:
Unfortunately, no. It's a way to install Memcache, which can be used as Memcached. Outside of Laravel, I'm using it as new Memcache; but Laravel is strictly using new Memcached and it's not working on Windows.
Have you seen the following link int he previews link that I have sent you:
http://splinedancer.com/memcached-win32/
or
http://blog.couchbase.com/memcached-144-windows-32-bit-binary-now-available
If anybody can help you more than me, is welcome!
Sadly that there is no memcached for Windows - As I remember :(. Why don't you use redis instead
@bomberman1990: there is a solution. The problem is: Laravel supports only Memcached Developing PHP app with Memcached on Windows seems impossible becasue the PHP extension only support Memcache (note: without a d) on Windows
It has been 9 months ago. I've answered the solution and post it here so it may help you or others:
I've documented a step by step solution to that on my blog here: https://altinukshini.wordpress.com/2016/09/09/memcached-php-client-for-development-purpose-on-laravel-5/
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community