Questions tagged [memcached]
Memcached is a simple distributed object cache that caches information in memory, and can be used to improve the performance of dynamic web applications by reducing access time and database load.
5,185
questions
0
votes
0
answers
9
views
How to store whole datastore entity in Google appengine memcache using JAVA so that it will be accessible across sessions
Currently at every system login I am fetching entire customer entity from google appengine datastore and using it in current session. Since number of records are in thousands, my google billing is ...
0
votes
0
answers
12
views
Memcached: How to detect server is not available?
I have a node backend who access to Memcached with the module memcached-promosify. If my application starts and the server of memcached has not been started I can detect if I can get access trying to ...
1
vote
0
answers
24
views
Laravel memcached - If one of the servers goes down, memcached doesn't work
Laravel Version
10.4.1
PHP Version
8.2.1
I have 2 memcached servers configured. As it currently works, if one of the servers goes down, memcached doesn't work.
The correct solution would be if one ...
0
votes
0
answers
47
views
Memcache + Shared Hosting with Multiple Websites
so my situation is I'm using Shared Hosting for my eCommerce websites (Wordpress) and I just found out about Memcache and Redis. My hosting provider is Interserver, and they said I couldn't use Redis, ...
0
votes
1
answer
72
views
Caused by: com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: app_identity_service.GetAccessToken
We are upgrading from java8 to java17. The application runs in google-app-engine. we are using AppIdentityServiceFactory to get access tokens for google kms services. The sample code is working in ...
0
votes
0
answers
24
views
AWS memcache throwing connection reset by peer error
I am trying to connect to AWS memcache via lambda in python. When my cluster is having a single node. I am able to connect easily. But when my cluster is having multiple nodes, it is throwing reset by ...
2
votes
2
answers
100
views
Memcached: How can I modify maximum item size?
I'm newbie in Memcached. By defualt, I know that the minimum item size is 1MB. However, I want to increase this value to 4MB because I've got an item with 2.8MB size.
Following some instructions I ...
0
votes
0
answers
14
views
WP DB Sessions - simplest load balancer
Many WP related articles claim that session hash is stored in WP database, and is checked against cookies saved. Is this true?
Asking this because, I've 2 servers running the exact same WP app with ...
-1
votes
0
answers
15
views
MEMCACHED - store on the disk and retrieve for data restoration in memcached by PHP scritp
I'm searching for a possible solution for a specific need I have.
In particular I developed a web application in PHP that is using massive variables using MEMCACHED as a local data cache.
Sometimes I ...
0
votes
0
answers
48
views
Memcached Session Manager failing in multi-threaded environment
I am using memcached session manager in a muilti-threaded spring web-application everything is working fine but downloads and printing sometime gives error, we are setting session values through ...
2
votes
0
answers
63
views
How can I use memcached in C# to store and retrieve data upto 1gb?
I am saving a datatable and then trying to fetch data from memcache.
I tried increasing the max_bytes using the command
memcached.exe -d start -m 1024
I am saving data using this code:
public void ...
1
vote
0
answers
83
views
Php-fpm: abnormal cpu usage over time
I'm running apache (2.4.29) + php-fpm (php 7.2) + memcached on Ubuntu 18.04.3 LTS VM (VM Ware vSphere Hypervisor) with 16 vcore (2Ghz) and 16GB of RAM.
Mysql 5.7 on separate server and php-fpm setting ...
0
votes
0
answers
30
views
How to properly use Memcache in web applications with limit and parametric search?
I'm not sure that my question is initially correct in view of the choice of tool - memcache and perhaps I need to look towards Redis, but as long as my project uses memcache, then the question will be ...
1
vote
2
answers
83
views
How to configure Rails caching to namespace cache keys with the environment?
I'm deploying a Rails 6.1 App on a server that hosts both my staging and my production environments, and has a unique memcached instance.
If I don't namespace all cache keys, I believe the same keys ...
0
votes
1
answer
51
views
How to invalidate a Memcached value when updating a product's price in my custom PrestaShop 1.7 module?
I'm using a Prestashop 1.7 multistore. One of the stores has VAT enabled, while the other does not. I've created a custom module that hooks into the updateproduct hook. In this module, I update the ...
-1
votes
1
answer
387
views
memcached not running on Ubuntu 18: memcached.service: Failed to set up mount namespacing: No such file or directory [closed]
On Ubuntu 18.04, I have the following issue while starting the memcached service (after a fresh/new install of memcached package), that is not running at all even after a start/restart of the service, ...
1
vote
1
answer
45
views
Laravel memcached
I am getting error like this
php artisan cache:clear
Failed to clear cache. Make sure you have the appropriate permissions.
in my .env
CACHE_DRIVER=memcached
i have storage/framework/cache/data ...
0
votes
1
answer
65
views
Memcached configuration in springboot app
I'm trying to CI a Java SpringBoot app, the app is making use of memcached.
pom.xml dependency:
<dependency>
<groupId>io.sixhours</groupId>
<artifactId>memcached-spring-...
0
votes
0
answers
55
views
Memcached returns always empty string without failure
Memcached was working but ( after Plesk update ) not working anymore.
This is a simple code from PHP memcached page.
$mem = new Memcached();
$mem->addServer('127.0.0.1',11211);
if( $mem->add(&...
1
vote
0
answers
54
views
Best Way To Cache Large MySql Table In Java For Trading App [closed]
I am computing data for several thousand equities and every market day I build a set of statistics on my computed variables for each entity variable to build a realtime query of a current variable ...
0
votes
0
answers
19
views
Codeigniter 3 memcached issue
i'm getting this error in my drivers/Cache_memcached.php file
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: drivers/Cache_memcached.php
Line ...
0
votes
0
answers
102
views
Using memcache with FastAPI not caching values
I am unable to get memcache to work with FastAPI for my application.
I am configuring memcache like this in FastAPI
def get_memcached_client() -> Client:
return Client(['localhost:11211'], ...
0
votes
0
answers
19
views
Why is caching not improving the performance in my django view?
I am trying to improve performance of a view by caching a given linear algebra expression and its corresponding result.
I am using memcached and pymemcache but for some reason theres no performance ...
0
votes
1
answer
43
views
What is the best approach to caching a very long list of rarely changed data?
This is for a Blazor server app running on Azure. In the app there are a lot of times a user will be selecting a couple of tags from a very long list. The content of that list rarely changes and when ...
0
votes
1
answer
26
views
PHP session with Redis and Memcached causes application slowdown
I'm working with my application in high availability, and for that I configured Redis as a session manager.
Redis is installed on its own server on the same network, but I noticed that when there is ...
1
vote
0
answers
69
views
Memcached CAS with symfony memcached adapter
I am trying to figure out how to use CAS feature of memcached from symfony adapter. Theres is many supported operations in memcached such as: "set", "add", "get", "...
0
votes
0
answers
96
views
How do memcache deployments on Kubernetes handle changing pod IP addresses?
I'm trying to understand official recommendations I've found for sharded memcache deployments on Kubernetes, such as Google's Deploying Memcached on GKE. Specifically, where it recommends deploying a ...
2
votes
0
answers
43
views
Memcached: Timeout waiting for value: waited 10,000 ms. Node status: Connection Status ip:port active: true, authed: true, last read: 7,060,231ms ago
Facing memcached issue while running a application in K8 and memcached is running in docker.
Earlier we were in docker both application and memcached. Now we have migrated only application from ...
1
vote
1
answer
206
views
App Engine (Flask) memory limit: how should I cache "large" (3 MB) database calls? How can I monitor memory usage on a local server or during testing?
For some time now, I've been running into this error on my current project, golfcourse.wiki (App Engine F1, Python 3.9, Flask 2.0.2):
Exceeded hard memory limit of 384 MiB with 395 MiB after servicing ...
1
vote
2
answers
51
views
Good way to a multi get of keys in couchbase with bucket of memcached type
I have a couchbase bucket of memcached type. I want to bulk get keys from the bucket. N1QL will not work as it is of memcached type. What is a good way to do this? I want to avoid multiple calls since ...
0
votes
0
answers
6
views
Does memcached send packets that fragment on IP layer using UDP and not TCP?
question is in title.
I have read that memcached fragments only on application layer for large responses.
Is this always the case?
If TCP is not used e.g. client -> a.b.c.d:UDP/11211 ; a.b.c.d:UDP/...
0
votes
1
answer
123
views
how to install elasticcache client memcached on PHP 8.0 on AWS Beanstalk
I am tring to install elasiccache client on AWS beanstalk but all ways fail,
thanks
I created folder .ebextensions and file package.config
in this file
packages:
yum:
git: []
jq: []
...
0
votes
0
answers
142
views
Determining the correct connection count with memcached
A memcached v1.6.21 setup on ubuntu has maxbytes = 3GB and maxconns=1024. When the server recevies about 600-800 GET requests/sec, it works fine. If this reaches roughly 1000 req/sec, the server ...
0
votes
0
answers
226
views
debian-bookworm: memcached installation with pecl fails
memcached docker installation works in Debian 11, but it fails in Debian 12
RUN apt-get update && apt-get install -y libmemcached-dev zlib1g-dev \
&& pecl install memcached \
&&...
0
votes
0
answers
62
views
session_lock issue on codeigniter 4
I have configured session store as memcached, it was working fine in PHP 7.1 with codeIgniter 2,
After upgrading PHP 7.1 to 8.2 and codeIgniter 2 to 4
I am getting an error on multiple async ajax call
...
1
vote
1
answer
423
views
Cache aside strategy : delete or update the cache after the write?
I am trying to understand something about the the cache aside strategy. The data is read from the cache if found (cache hit), and if not found (cache miss) read from the Database + updated in the ...
2
votes
2
answers
1k
views
Problem adding Memcached support in Docker for PHP8.1 using bookworm
I have a Dockerfile relying on PHP:8.1-apache, running since months.
Once PHP:8.1-apache started to use Debian bookworm, the memcached client started to give an error while building the image.
The ...
0
votes
0
answers
22
views
PHP Memcached delete dead server from pool
there are two production servers and both servers contain memcached. E.g. web1 server is 192.168.1.1, the web2 is 192.168.1.2. Now both of servers are added to the memcached config on both servers.
$...
0
votes
1
answer
36
views
Node express JS load db contents to Memory always
In my node express APP, I want to load large db content to memory and use it for every API call from the cached memory instead of loading the data from db every time. Is there any way to do this ...
0
votes
0
answers
70
views
Accessing php session data in memcached aws elastic cache
I have two web servers (httpd,php8.2, and Memcached client installed on them).The two webservers behind an application load balancer.
I have created aws elastic Memcached for storing php session data. ...
1
vote
0
answers
96
views
Why proc/meminfo Active+inactive (file) != cached?
Cached: Memory in the pagecach
Active(file): Pagecache memory that has been used more recently and usually not reclaimed until needed
Inactive(file): Pagecache memory that can be reclaimed without ...
0
votes
0
answers
36
views
configure, compile, and make memcached.a file instead of memcached executable
I am able to compile in Linux memcached into an executable. i am using 1.6.19 version source https://memcached.org/downloads/. there are two questions:
Can I build it for targets Windows, Mac, and ...
0
votes
0
answers
214
views
Rails 6.1 upgrade: undefined method reset for ActiveSupport::Cache::MemCacheStore
I'm upgrading a legacy rails app from 5.2 to 6.1 and it looks like there were some changes to the config for cache_store and I'm now getting ERROR -- : undefined method 'reset' for #<ActiveSupport::...
0
votes
0
answers
110
views
How to cache for high cardinality keys (composite keys) and low/fixed cardinality data
I am trying to design for a use case where we have high cardinaltiy keys and low/fixed cardinality data.
The high cardinality of keys(multiple millions) results from them being composite keys e.g.
...
0
votes
0
answers
27
views
php memcache faileover recovery lost session
I'm experiencing some issue with php-memcache extension (same pb with php-memcached).
Expectation :
I've got 2 server with memcached and apache2/php7.4 : front1 192.168.0.1 and front2 192.168.0.2
For ...
0
votes
2
answers
268
views
How do run set command with memcached via netcat/telnet
I'm trying to understand memcached and troubleshoot one of my applications that uses it, but I'm having a hard time executing the set command. I'm following this tutorial here. https://www....
0
votes
0
answers
65
views
Work with memcached into nuxtjs 3 on server api
I am new to nuxtjs and trying to solve a small task. A first goal is to accept requests at an API endpoint (/api/test) and store them in Memcached.
I have installed memcached via yarn and I can reach ...
0
votes
0
answers
24
views
How to accomplish a Redirect from CacheItemRemovedCallback?
So, in my Login.aspx.cs I insert a "user is logged in" kind of key in the memory Cache. It has an expiration time (which I plan to make "sliding" at some point), which fires the &...
1
vote
0
answers
36
views
Exception Handling in Rails Fragment Caching
I was trying to handle the exception if the Memcachier server is down, but it seems that is not happening.
I am using a code snippet in the Rails view; basically, there is a service that would return ...
0
votes
0
answers
27
views
Django: Is it a good idea to have two caches on one memcached instance?
I would like to have two caches with different timeouts on one memcached instance in my django 3 instance:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached....