Skip to content
Advertisement

Tag: memcached

Class ‘Memcached’ not found in laravel

I am trying to run simple code of cache using memcache in my laravel project. I have added CACHE_DRIVER=memcached in my .env file. I have created folder of memcache in C drive and added a file memcache.exe in that, and run in cmd by opening it as administrator. my code in route is: when I run this route, i get

pecl install memcache fails on OS X Yosemite with “memcache support requires ZLIB”

I’m trying to perform a pecl install memcache with XAMPP on OS X Yosemite, but it fails to find zlib, producing this error: checking for the location of ZLIB… no checking for the location of zlib… configure: error: memcache support requires ZLIB. Use –with-zlib-dir= to specify prefix where ZLIB include and library are located ERROR: `/private/tmp/pear/temp/memcache/configure –enable-memcache-session=yes’ failed How to

PHP Memcached stores array, retrieves object. A bug?

Using MemcacheD v1.4.22 PECL MemcacheD library v2.2.0 PHP v5.3.19 (cli) I am trying to store an array into cache I am storing an array with mixed integer/string keys which should not be a problem for php but apparently it is for memcached? Is it documented anywhere? Any workaround or hint? If I look at terminal output of the key: we

Advertisement