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,142
questions
0
votes
0
answers
13
views
Explicity enable cache in Django by function/endpoint but not site wide
Our Django application is quite big, and it has reached the point where Caching in certain parts will improve a lot the performance.
However, when we enable caching it will do site wise, and so some ...
0
votes
0
answers
34
views
Laravel 7 - What could cause intermittent 419 errors?
I have a website running with Laravel 7 in 3 app servers connected to 1 database server.
The 3 app servers have memcached installed. The session driver is memcached. And I've added the 3 servers in ...
0
votes
0
answers
13
views
Could I use memcached as a channel layer in Django?
I would like to use Django Channels in my application and I need a channel layer but I don't want to use Redis because, it is not available in my hosting plan. I have to get a dedicated or VPS server ...
0
votes
0
answers
24
views
AttributeError: module 'memcache' has no attribute 'Client'
Recently I implemented lock.py in my python project for locking threads, using memcached. However I encoutered an error which I have trouble solving. It says that memcache does not containt attribute ...
0
votes
0
answers
31
views
Using Memcached as Session Handler in CodeIgniter randomly gives error
To work with sessions via Memcached in CodeIgniter 3, should I also configure PHP to use Memcached or just configure in CodeIgniter is that enough?
My project in CodeIgniter 3 is used with several ...
0
votes
0
answers
13
views
How can I cache API result from my custom api route using Wordpress W3 Total Cache?
I have memcached installed together with W3 Total Cache. I also have registered a custom api route /namespace/all where I fetch data from an external API. I would like that data to be stored in ...
0
votes
0
answers
40
views
Test for a thread lock gets stuck on thread.join()
I was writing my own implementation for Memcachelock in my python project, but got stucked on testing it out.
My code:
if __name__ == "__main__":
from threading import Thread
# demo ...
0
votes
0
answers
18
views
How do I solve python Flask memcached error?
There is some exception occur during running python
function : Memcached.py - chk_mcc , exception : b'RESULT:88'
key : 88
function : Memcached.py - get_mcc , exception : b'88'
key : RESULT:88
I made ...
0
votes
0
answers
14
views
Does TLB miss and cache miss equal between threads of a key-value store with real workloads in data centers?
If I run a key-value store such as Memcached with multiple threads, and I run a few workers on the same server to generate a random workload, I get almost the same TLB-miss and cache-miss (with a ...
0
votes
0
answers
20
views
Slow reading (4s) from ElasticCache/Memcached with Elastic Beanstalk
I have a problem understanding the interaction between ElasticCache and ElasticBeanstalk.
I have created a Memcached cluster in ElasticCache (cache.t3.medium 1 node).
ElasticBeanstalk is based on PHP ...
0
votes
1
answer
49
views
Can I use Elasticache Memcached to store the events which the value has JSON object in key-value pair
I'm trying to push the events into the cache. The events contain a key-value pair. The key is a string and "Value" is a JSON object. Can I use memcached for this(I have read somewhere that ...
0
votes
2
answers
75
views
PHP session lock issue
PHP Warning: session_start(): Unable to clear session lock record in
/var/www/efs/html/v43/Api/PortalApi/PortalApi.php on line 39
When multiple request are made simultaneously, the above issue ...
0
votes
0
answers
34
views
user got kicked out from php session under php8 and memcached
we just migrated a bigger application from PHP5.6/memcached to PHP8.0/memcached.
The application is running fine up to some problems with the session.
In some situations, the user is forwarded to the ...
0
votes
0
answers
5
views
Delete replication between nodes in a single Memcached cluster?
We have a MemcacheD cluster in AWS which has 3 nodes. I wanted to understand if we send a delete request for a key with the hostname as the name of the cluster, will the delete be reflected in all the ...
0
votes
0
answers
14
views
Incorrect response for Memcache::set
Looks like I found a rare bug in Memcache PHP extension (or Memcached server). When setting multiple keys at once then in very rare cases the returned value is an array instead of bool. Example code:
$...
0
votes
1
answer
819
views
how install memcached and php 8.0 - 8.1?
I wanted to install memcached on laravel 8 (php 8.0-8.1) (windows10 - openserver)
Anybody have a solve the issue ??
With php 7.4 all good, but didn't find php_memcached.dll for php 8*
0
votes
0
answers
249
views
Error: No such file or directory @ rb_sysopen - /Users/jayant/Library/LaunchAgents/homebrew.mxcl.memcached.plist
While running memcached server on mac i'm getting this
Error: No such file or directory @ rb_sysopen - /Users/jayant/Library/LaunchAgents/homebrew.mxcl.memcached.plist
I tired brew services restart ...
0
votes
0
answers
176
views
The CSRF token is invalid. Please try to resubmit the form. Symfony 4 with php-fpm7.4
When I submit a form I get the following error:
"The CSRF token is invalid. Please try to resubmit the form."
It does not always happen, sometimes it is sent correctly, but no type of error ...
0
votes
0
answers
33
views
Convert from memcached output binary protocol to readable UTF8 in command line
Right now a lot of symbols are not readable via memcat/memccat or telnet (get) commands.
Is there anyway to convert the telnet/memcat/memccat output to UTF8 readable (except native clients)?
aim-...
0
votes
0
answers
23
views
Heroku MemCachier will not store cache
Quite new to this as I am trying to deploy MemCachier and I am quite new to code in general.
Followed this guide
https://devcenter.heroku.com/articles/flask-memcache
I have a function in a Flask app ...
0
votes
0
answers
18
views
Save Session in Memcached in Zend
I am working on a zf project. Currently session is saved in Mongo DB. My task is to change the logic to save session in Memcached instead.
I implemented a factory for (\Zend\Session\SaveHandler\Cache)
...
0
votes
0
answers
37
views
Lambda function giving timeout while saving record in ElasticCache MemCache
I have one lambda function in which i wanted to connect with my Elasticache MemCache with endpoint. The code is running on my local, but after uploading same code lambda it is giving me
As you can ...
0
votes
0
answers
10
views
Is there a way to install memcached on windows server 2019? [duplicate]
I am trying to deploy my Django 4.0 project on Windows Server 2019, I am finding it difficult to install memcached
0
votes
0
answers
29
views
Set method in Yii 1.1 data caching system always returns false value
We have a web application which is based on Yii 1.1 . I want to cache some data so I found Yii documentation about data caching and I did it step by step but set method always return false when I ...
0
votes
1
answer
183
views
How to connect memcached laravel and docker?
I have created the memcached container in docker
docker-compose.yml:
#store cache
memcached:
image: memcached
container_name: memcached
ports:
- "11211:11211"
.env
...
0
votes
0
answers
23
views
redis-based openstack deploy with kolla
I am trying to implement openstack wallaby with kolla and without memcache but with redis. I have modified the keystone.conf, but still I cannot loging via horizon. Do you know what I can do to ...
1
vote
0
answers
210
views
Laminas Cache config issue after updated to PHP 8.1 from zend3
I work on a project which is recently updated to Laminas and PHP 8.1 from Zend3 and PHP 7.4.
in config/autoload/global.php
'caches' => require __DIR__ . '/caches.php',
and this is caches.php
$...
0
votes
0
answers
31
views
AWS Elastic Cache Cluster PHP client not working in resetServerList() function
I have an issue with Memcached, After resetServerList() function the object is not supported to next any activities like set, add, etc...
PHP version : 7.2
AWS Elastic cache cluster client: 3.1.3
...
0
votes
1
answer
83
views
Django AssertionError No api proxy found for service "memcache"
I'm running a Django app on GAE and I want to use memcache in my views.py to store some data for caching. I have not setup anything for caching in my settings.py and immediately use from google....
0
votes
0
answers
26
views
How do I get memcache extension to work in MAMP PRO 6.6.2?
Currently I'm setting up my companies wordpress instance on my local device and i'm getting a "not found" for the line $this->memcache = new Memcache; I am using MAMP Pro 6.6.2 and its in ...
0
votes
0
answers
20
views
How can I save mcrouter cache with laravel?
I'm a beginner who just started laravel. I'm going to connect the mcrouter container to the service container and save the cache with docker, so can I just do it like I'm setting up the mcrouter ...
0
votes
1
answer
36
views
php7.4 unable to read memcached data saved by pylibmc
I keep getting these errors trying to read memcached variables stored by python3 scripts runnnig pylibmc.
PHP Warning: Memcached::get(): could not decompress value: unrecognised compression type in ...
0
votes
0
answers
12
views
In Laravel app, how can I log total time to query from cache?
I tried using memcached cache driver in my Laravel app but suddenly the response time of the app decreased from about 300ms to about 4s. How can I debug how many cache queries are being made and ...
0
votes
3
answers
98
views
How to prevent overwriting of database for requests from different instances (Google App Engine using NDB)
My Google App Engine application (Python3, standard environment) serves requests from users: if there is no wanted record in the database, then create it.
Here is the problem about database ...
0
votes
0
answers
36
views
Using Memcached with Django and using cache page decorator for guest users but in one condition I need to invalidate the cache but dont know cache key
My Decorator
def cache_auth(*cache_args, **cache_kwargs):
def inner_decorator(func):
@wraps(func)
def inner_function(request, *args, **kwargs):
if not request.user....
0
votes
0
answers
25
views
Session Replication in Memcached Cluster Tomcat
We have setup a couple of memcached servers on tomcat servers and configured them with Kony MF console as a cluster. This question is not about kony.
I want to know, how normally a session replication ...
0
votes
1
answer
70
views
Memcached: why memcached server constantly drops connection?
I have two spring apps, in both I use spymemcached.
And memcached client is created like this
private MemcachedClient buildClient() {
String address = this.serverAddress;
MemcachedClient ...
0
votes
1
answer
135
views
How to setup memcached for Django 3.0 on App Engine?
So I have a Django 3.0 app that I want to deploy to App Engine. I want to use Memcached in order to cache data that has been pulled from BQ to my Django app. So far what I have is that I set up my ...
1
vote
1
answer
46
views
High throughput in-memory database for temporary storage of images
I'm looking for a high throughput in-memory database for storing binary chunks of sizes between 1.5MB to 3MB (images).
The use case is live video stream computer vision inference pipeline, where we ...
0
votes
1
answer
201
views
PHP - best way to cache and serve image and video files
I'm running an app like 9gag where uers can upload and watch images and videos so same images and videos are requested up to 100 times per minute which puts a big workload on the SSD so storing last ...
0
votes
0
answers
125
views
LiteSpeed cache Plugin showing HTML only at the start
I am facing a problem. I have used the LiteSpeed cache plugin and it did reduce the page load time but its largest content paint is in link which is causing "clickable elements too close together&...
0
votes
0
answers
26
views
session_start() stucked website loading longer than a second
Good afternoon,
during profiling my app through blackfire I found, my website loading is stucked for approx second-two in session_start(). I founded some results on internet. For example - install php ...
0
votes
0
answers
30
views
How do you configure memcached because i am new to the service
How do you configure memcached to achieve better performance when gaming.
I stumbled upon memcached while trying to figure out more uses for a ramdisk and while searching for more uses for ramdisk I ...
0
votes
1
answer
54
views
Wordpress: Disable WP Object Caching DURING Runtime
I tried to disable WP Object Caching during Runtime using
wp_using_ext_object_cache(false);
Unfortunately it still does not update, e.g. user meta data, from the DB. So when I change a value directly ...
0
votes
0
answers
21
views
How to use memcached? Criteria is if the name of user is updated then that name has to be updated in memcached.How to create memcached & updated it?
** This is my UserController",for user views I am using only new.html.erb which consists of a user form that's it .How to write apply memcached for this do I create new file or do I need to write ...
0
votes
1
answer
58
views
Clear specific item cache using MEMCACHE PHP
I used to clear cash using flush() in PHP every day, like 5-10 times.
I want to clear specific items cache to prevent caching all server cache.
This is the right way:
Use Memcache::delete() to delete ...
0
votes
0
answers
35
views
Is there a php equivalent function igbinary_unserialize() in Node js
Is there a php equivalent function igbinary_unserialize() in Node js?
I want to unserialze a value from Memcached which is set by PHP with serialize_handler as igbinary (Dont have control to change ...
0
votes
0
answers
16
views
How to set a key without a value in memcached
How to set a key without a value in memcached?
let's say I started my server on port 5000.
If I do
"echo "add mykey 0 0 4096"|nc localhost 5000"
It won't accept it because it's ...
0
votes
0
answers
191
views
I store jwt token in redis. What do you think about cache time?
My code redis service, get token and set redis cache on this method. how long should jwt token cache be stored.
namespace Demo.App
{
public class ProductService : IProductService
{
...