Questions tagged [memcached]

1

votes
1

answer
290

Views

session_start is failing to create session ID

I'm working in PHP 7.1 with Laravel 5.5. The error thrown is: Failed to create session ID: memcached (path: localhost:11211) The code causing the error is: if (session_status() === PHP_SESSION_NONE) { session_start(); // error on this line } My sessions are supposed to be files, which are successful...
amflare
1

votes
1

answer
228

Views

Incorrect work memcached + docker-compose: returns None

I need your help. I'm trying to use memcached + docker-compose but I'm getting None. I did port forwarding web with memcached. Base cache is given 11211 port. What am I doing wrong? View.py example from django.core.cache import cache def show_category(requests): categorys_name = CategoryNews.object...
Serg Bombermen
1

votes
0

answer
41

Views

PHP Memcached: Entire cache gets lost when add a new host

When adding a new host on runtime, the entire cache gets lost. How to fix this? Can anyone tell the steps, How to investigate this issue?
Ehtasham Nasir
1

votes
0

answer
325

Views

Memcached Issues with Laravel 5.5 as Cache Driver

I've been scratching my head on this all day and scouring the internet for any help, but I have not found it, so here's my problem: I have an existing web application using Laravel 5.5 and I want to set up caching using Memcached. I would use Redis but since Laravel doesn't allow Redis to be used as...
Tony
1

votes
0

answer
179

Views

Memcached Could not connect to Remote Server | memcached.js

My local environment for API node -v: v8.9.4 npm -v: 5.6.0 Package memcached.js: 'memcached': '^2.2.2' We have a Node API in which we are using package memcached.js to connect to Memcache server with below configurations. MEMCACHED_CONFIG: { MAX_VALUE: 1024, SERVER: 'X.X.X.X', PORT: 11211, COMPL...
1

votes
1

answer
264

Views

Unable to install memcached via homebrew due to deprecation. PECL doesn't work either

So our friends at Homebrew have gone and changed things. They've deprecated Homebrew/PHP. That's fine, that's what we developers do. I was able to successfully install PHP 5.6 using Homebrew on a fresh installation of OS X High Sierra. I'm trying now to install memcached and mcrypt, but with the...
noctufaber
1

votes
0

answer
27

Views

While fetching data from MemCache(Docker) getting a performance issue..stack trace below

net.rubyeye.xmemcached.XMemcachedClient:get:1016 (method time = 0 ms, total time = 74 ms) net.rubyeye.xmemcached.XMemcachedClient:get0:1058 (method time = 0 ms, total time = 74 ms) net.rubyeye.xmemcached.XMemcachedClient:fetch0:644 (method time = 0 ms, total time = 74 ms) net.rubyeye.xmemcached.XMem...
Ramandeep Kaur
1

votes
1

answer
175

Views

AppEngine NodeJS flexible memcache undefined GAE_MEMCACHE_HOST and GAE_MEMCACHE_PORT

I want to use the memcache AppEngine service in my NodeJS flexible environment. As specified in the documentation: https://cloud.google.com/appengine/docs/flexible/nodejs/using-redislabs-memcache I used the suggested app.yaml file and I decommented the USE_GAE_MEMCACHE: 1 and commented the other var...
Mehdi Benmoha
1

votes
0

answer
22

Views

Apache and Mysql cluster configuration advice

I am new to MySQL cluster I was reading around the web how to set it up. I came up with 2 different set up not sure which one is better fail-safe vs cost efficient. Our new site has clients in USA and Japan. We are not a big site, and saving money is a high priority for us. V1) US Servers, Japan Ser...
find it now
1

votes
0

answer
60

Views

How can i specify multiple key columns in MySQL memcache plugin?

After i configured and tried and have working the memcache plugin for MySQL, i've been unsuccesfully trying to add a namespace from a table with composite primary key. There is the example: CREATE TABLE test( `key` VARCHAR(3), `key2` VARCHAR(3), `value1` varchar(1024), `value2` varchar(1024), PRIMAR...
Javier Carreño
1

votes
1

answer
75

Views

Locally run Google App Engine Flex with Memcache?

I am trying to run google app engine with memcache locally with go run *.go and I am getting the following response: service bridge HTTP failed: Post http://appengine.googleapis.internal:10001/rpc_http: dial tcp: lookup appengine.googleapis.internal: no such host** What is the proper way to run loc...
Patrick Meyer
1

votes
0

answer
96

Views

memcached: failed to parse session.save_path

I am trying to set up memcached to work with PHP I've installed it and confirmed that works with php -i | grep memcached I am running a simple php file to test memcached:
potato
1

votes
0

answer
19

Views

Get value from memcach but it is null

I'm trying to get value from memcache. value of $dataOld[$i] is null when I'm trying to read that in if statement outside of if block it contains right value. This is my code. My code is for get and send data . any help will be much appreciated.
seyed ali ziaei
1

votes
0

answer
51

Views

How to connect memcached with spring MVC API to get and set data

I am new to memcached and Spring MVC, I am trying to create a rest api which would be setting some values in memcached. Which I can retrieve also. But I am not getting the right way to connect to memcached. Consumerconfiguration: import org.springframework.context.annotation.ComponentScan; import or...
Developer52
1

votes
1

answer
34

Views

Php Memcached's PAYLOAD_FAILURE error and how to set value in perl compatible to php-memcached

I am trying to GET the earlier stored data using PHP's MemcacheD extension but receives Memcached::RES_PAYLOAD_FAILURE saying unable to serialize the data. As per the official php manual, it appears to be compression or serialization issue. Memcached::RES_PAYLOAD_FAILURE Payload failure: could not c...
gk.
1

votes
0

answer
58

Views

Memcached with large objects (NetworkX graphs)

I have a NetworkX graph (g) with ~ 25k nodes and 125k edges. I want to cache g using memcached but g is too big. The most I am able to increase the memcached limit per item is to 32MB which doesn't do it. Should I even try and get this to work with memcached? What are my other options, if I want to...
Vishal
1

votes
0

answer
91

Views

memcached on PHP AWS Beanstalk

I need to use Memcache (or memcached) on my PHP Beanstalk Deployment. I looked at phpinfo() and i got that memcached is installed as php extension. But it fails everytime I try to connect $memcache = new Memcached(); $memcache->AddServer('127.0.0.1',11211) // returns false What shoud I do? PS I don...
Daniel Santos
1

votes
0

answer
54

Views

Scaling Django using cache and database clusters

I'm working on the optimization and the scalability of a django project. At the moment, our infrastructure is as follow : One web server; One database server (Postgresql); Media and Static files are managed using aws S3. We want to scale our infrastructure according to this figure : I read the d...
Alouani Younes
1

votes
1

answer
90

Views

Lumen Artisan Issue: No memcached servers added

I have just begun to work in a working project. I was trying to mount a docker-compose set of servers for DB, Lumen, and more. When I try some command involving artisan (just like php artisan --versionor php artisan migrate) I get the error message: No memcached servers added Well, then I go to Lar...
Javier Torron Diaz
1

votes
0

answer
102

Views

gwhalin memcached java client set object size > 1 MB increase slab size

I am using com.whalin/Memcached-Java-Client library version 3.0.2. Default slab size is 1 MB and I have used -I command to start memcached server - memcached -d -u nobody -m 4096 127.0.0.1 -p 11211 -I 5242880. Memcached server version is 1.4.26. I have a legacy system where I want to increase the me...
Santosh
1

votes
1

answer
207

Views

Cannot find save handler 'memcached' - session startup failed

I have my own simple hosted site on Fasthosts. I was offered to upgrade PHP from 7.0 to 7.3 but I am getting the following error: Warning: session_start(): Cannot find save handler 'memcached' - session startup failed in /home/xxx I have tried changing numerous ini settings, including reverting to '...
Gripper
1

votes
0

answer
69

Views

Building caching structure for list of IDs and Json Objects

I'm looking to build a more efficient caching structure for a User's profile feed of images on a website. This feed is paginated. Therefore my selects in both the database and the cache will use an offset / page number. My code is in Python and my caching system is in Redis. I'm using pagination to...
stwhite
1

votes
2

answer
318

Views

How can I avoid duplicate copies of an object in a cache?

I'm using memcache to design a cache for the model layer of a web application, one of my biggest problems is data consistency. It came to my mind caching data like this: (key=query, value=list of object ids result of the query) for each id of the list: (key=object.id, value=object) So, every time a...
Lucia
1

votes
2

answer
434

Views

What is the best MemCache solution for ASP.NET applications? [closed]

What is the best MemCache solution for ASP.NET applications running in a windows server environment? Why?
Ryan Montgomery
1

votes
2

answer
363

Views

I need a LAMP stack *with memcache* — which webhost?

I'm a PHP developer and I've made something I want to push live. It requires memcache, and I'm expecting a fair amount of traffic, at least at launch, so I'd like it to be fast. I'm really awesome at programming, but when it comes to getting hosting stuff set-up (other than run-of-the-mill shared ho...
1

votes
1

answer
696

Views

Repcached for Win32 - has anyone built it?

I have finally got the green light to use Memcached in our project (after months of lobbying against a database-based caching solution - just don't ask...), however we will need to use Repcached as well to have backup copies of our data. Has anyone built this for Win32? We may end up using Linux i...
endian
1

votes
3

answer
517

Views

Using memcached in Rails app with Single Table Inheritance?

I have a Rails app that uses STI to handle different types of Users, such as: class Admin < User ... end I want to use memcached, but I keep getting the dreaded 'unknown class/module' error. I've tried pre-loading all of my ActiveRecord models to no avail. The first request works as normal, but the...
Matt Darby
1

votes
1

answer
1.9k

Views

Caching and Session state management using Microsoft Velocity and Memcached

I was looking at Microsoft Velocity and memcached to find a solution for some session management issues - What is the difference between caching that is provided by Microsoft Velocity, memcached and session state management? I mean memcached and microsoft veolocity provide distributed caching capabi...
Developer
1

votes
3

answer
1.2k

Views

Why am I getting this Cache-money error?

I followed the instructions found on the github page exactly. I would post some of my configuration but it matches what's found here on http://github.com/nkallen/cache-money/tree/master The error reads as follows: /!\ FAILSAFE /!\ Thu Mar 05 16:45:09 -0500 2009 Status: 500 Internal Server Error un...
Ben
1

votes
1

answer
1.5k

Views

How to remove objects by pattern from Memcached?

I'm trying to use Memcached and wondering if there is a way to remove the objects from the cache by key pattern rather than just one key per object. Say, I cache user 1 with key 'user1', then user 2 with key 'user2' ..., is there a way to remove all objects with a key that starts with 'user'? Or is...
Ray
1

votes
1

answer
3.8k

Views

PHP Memcache user created objects

Need some help about with Memcache. I have created a class and want to store its objects in Memcache, finding trouble doing so please tell me where am I going wrong. Following is my code // Class defined by me class User { public $fname; public $age; /** * @return unknown */ public function...
Zaje
1

votes
1

answer
489

Views

question on the use of libmemcached

This one could be a trivial 'yes or no' question but still could be helpfull. Could the C/C++ library libmemcached be used in a distributed file system ? I am asking this one because in all documentation on the net I came accross memcached was mostly assosciated with caching in web-service applicati...
whantana
1

votes
2

answer
398

Views

Caching of current user specific pages

We are using Smarty Templates on our LAMP site but my question would also apply to a site running Memcached (which we are planning to also bring online). Many of the pages of our user generated site have different views depending on who is looking at them. For instance, a list of comments where yo...
weotch
1

votes
2

answer
460

Views

How do I disable cache_money caching for certain ActiveRecord models

I tried doing the def index(*args); end; trick within the models I'd like cache_money to ignore, but to no avail.
Kyle
1

votes
1

answer
162

Views

Is this the correct way to install memcache for Python?

Install Memcached Install python-memcache library Start Memcache service Is that right? What else is there?
1

votes
3

answer
4.4k

Views

PHP - Memcache - HTML Caching

I would like to create a caching system that will bypass some mechanisms in order to improve the performance. I have some examples: 1-) I have a dynamic PHP page that is updated every hour. The page content is same for every user. So in this case I can either: a) create an HTML page, and that page c...
murat
1

votes
2

answer
943

Views

Memcached/Microsoft Velocity Performance Question

Just a random query regarding Microsoft Velocity. Scenario: Say I want ALL Orders from my database. In SQL, this is fine, I can do SELECT OrderId,TotalCost... from Orders. This is one round trip to my database, and everyone is happy. Now, if I'm using Memcached or (as I'm using now) Microsoft Veloci...
sjhuk
1

votes
2

answer
615

Views

Best practices on cache implementation

I would need to implement cache, which would need to perform SQL queries and cache results. So, I would love to read something about best practices of doing that; how do properly, staling cache results, checking, etc. Particularly, I would probably benefit from learning how Hibernate is doing that?...
alexeypro
1

votes
2

answer
2.2k

Views

memcache loadbalance/failover plan

I wanna know if there is any loadbalance/failover plan for memcache. I'm using JAVA client. I knew some client implementions can talk with multi memcache servers, but how about loadbalance?
denny
1

votes
1

answer
144

Views

Storing comments in memcache. Any known strategies?

do you have any ideas of how to store comments in memcache? Let's imagine that I'm having image with a lot of comments for it. All comments are separated in pages. User can define number of comments per page in his profile. How should I store comments in memecache? Should I store all comment's IDs i...
Kirzilla

View additional questions