Questions tagged [memcached]

0

votes
0

answer
4

Views

cannot open shared object file: No such file or directory for amazon-elasticache-cluster-client.so

i keep getting these php warning when executing systemctl restart php-fpm [23-Apr-2019 09:54:12] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'amazon-elasticache-cluster-client.so' (tried: /opt/remi/php72/root/usr/lib64/php/modules/amazon-elasticache-cluster-client....
khinester
1

votes
1

answer
461

Views

MemCache: no room to 'put' - what happens?

I haven't coded/tested this yet, but assume that you have 2 memcached instances of very small size, e.g. 1Mb each. What happens when each cache is full and you try to 'put' another object into cache? Assume all objects in cache have infinite expiry. Any ideas?
robm99x
1

votes
0

answer
42

Views

PHP - Memcache for aprox. 20k small strings - out of memory

I have created simple code with memcache function CreateMemcacheName() { //lat and lon are latitude and longitude of place //user can not directly change this - it is passed from image URL //embeded in HTML site $lat = intval($_GET['lat'] * 100); $lon = intval($_GET['lon'] * 100); return 'data_{$lat...
Martin Perry
1

votes
0

answer
171

Views

Session is NULL Memcached - Codeigniter + Ratchet

I have just installed Memcached and used some tutorials to set up the server. This is my code for the server: use Ratchet\Session\SessionProvider; use Symfony\Component\HttpFoundation\Session\Storage\Handler; require dirname(__DIR__) . '/vendor/autoload.php'; $loop = React\EventLoop\Factory::creat...
Jianov
1

votes
0

answer
61

Views

Conditional memcached usage in isomorphic application

I have isomorphic application that depend on package with class that implement api of microservice. I have package that implement api of microservice and extend other class — basic class to all my microservice packages and this class live in another package. I have package with basic class which...
SilentImp
1

votes
0

answer
256

Views

Configuring Memcached Log Location in RHEL7

I have been searching in here for a while and tried the suggestions provided by experts. My memcache is not writing log in the specified location mentioned in /etc/sysconfig/memcached. Configuration is given below. But as suggested in This question, when I apply the below command it starts writing...
Talismanic
1

votes
0

answer
30

Views

Memcached dedicated server only accessible by IP-range?

I am planning to use a dedicated server solution for Memcached for our customers. Is it possible to only allow access to it for our own IP-ranges. For example: 100.100.100.0/24 If I am not mistaken, Memcached doesn't offer this solution right? ...so I should use something like iptables for this? And...
Tr3m0r
1

votes
0

answer
118

Views

memcached returns wrong walues

What could be the reason for memcached to return wrong value? Ex: Key1 -> 'abc'; key2 -> '123'. When I am trying to retrieve data for Key1, data returned is 123 instead of abc. This happens in my local environment(application on Windows machine with memcached-win64) and also in dev server(docker co...
Kranti
1

votes
0

answer
115

Views

Threads Error Memcached cloud Heroku Java

Background We are developing a Java service in Heroku with 1 dyno, which is using Memcached cloud. Issue Meanwhile we were developing and testing it, It was working fine. However, when we decided to test it in a real environment, It started to return the following error: java.lang.OutOfMemoryError:...
Manwelanza
1

votes
0

answer
43

Views

Django middleware setting cache taking 10 seconds

I have discovered that this piece of code is taking up to 10s when under some load, and I don't get why. Using django 1.8 with python 2.7 from django.core.cache import cache from datetime import datetime class ActiveUserMiddleware: def process_request(self, request): current_user = request.user if r...
Jorgen
1

votes
0

answer
51

Views

Auto-refresh keys in a distributed cache to avoid TTL eviction

TLDR: Is there a way to periodically refresh keys in Memcached so that those keys are always hot (to minimize cache misses). Longer version: I'm using Memcached as a distributed cache. I'm storing big values in the cache (~1MB size of each entry). My application needs consistent read latencies, but...
user1271286
1

votes
1

answer
443

Views

MemcacheD PHP extension on Windows

I need activate memcached on windows. What is weird I could install server but I can't find php extension for windows. I found a lot of topics where is claimed that there is no such for this system. Anyway that were old topic and I wonder if 'they' created one already? edit: PHP 7, w10
Oleksandr IY
1

votes
0

answer
14

Views

Memcache with Cloudant/Nosql, is it possible?

Is there a way to use memcached with any nosql database. In my case in production I have cloudant instance with a near to million users but incur high charges as simply there are more redundant reads than writes. Any thoughts or pointers to using memcache on node.js with any nosql dB will be helpfu...
BalajiK
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

View additional questions