Support the ongoing development of Laravel.io →
posted 9 years ago
Cache
Last updated 1 year ago.
0

memcache

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?

Last updated 1 year ago.
0

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.

Last updated 1 year ago.
0

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.

Last updated 1 year ago.
0

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...

Hope it helps you

Last updated 1 year ago.
0

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.

Last updated 1 year ago.
0

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-...

If anybody can help you more than me, is welcome!

Last updated 1 year ago.
0

Sadly that there is no memcached for Windows - As I remember :(. Why don't you use redis instead

Last updated 1 year ago.
0

@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:

https://sourceforge.net/p/laragon/tickets/6/

0
Last updated 8 years ago.
0

I've documented a step by step solution to that on my blog here: https://altinukshini.wordpress.com/2016/09/09/memcached-php-cl...

Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

andrejmk andrejmk Joined 28 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.