memcached Questions
6
Solved
I need to replicate memcached to another key value system (couchbase). How can I query the contents of a memcached server to get a list of what is in there so that I can copy it over?
4
Solved
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 me...
11
Our application runs in a Docker container on AWS:
Operating system: Ubuntu 14.04.2 LTS (Trusty Tahr)
Nginx version: nginx/1.4.6 (Ubuntu)
Memcached version: memcached 1.4.14
PHP version: PHP 5.5.9...
4
One of the Docker examples is for a container with Memcached configured. I'm wondering why one would want this versus a VM configured with Memcached? I'm guessing that it would make no sense to hav...
3
Solved
What's the fast method to compress Python objects (list, dictionary, string, etc) before saving them to cache and decompress after read from cache?
I'm using Django and I hope to add compress/deco...
Skepticism asked 18/8, 2010 at 7:35
5
Solved
In runtime, I want to retrieve the expire time info about some items in memcached. I didn't find any related interface on memcached. Can I do this? something like:
mc.get_expire_time('key')
Thank ...
4
Solved
While doing some web development, I needed to have Memcached (source code) installed on my local machine to closely simulate what was going on my server.
How to install Memcached on Windows?
Bausch asked 25/12, 2019 at 8:38
4
Solved
Is there a way to specify that if the method returns null value, then don't cache the result in @Cacheable annotation for a method like this?
@Cacheable(value="defaultCache", key="#pk")
public Per...
17
Solved
I've checked a number of similar questions on stackoverflow but haven't found an answer yet.
I'm trying to install memcached on Lion OSX as shown here.
Here's what I'm getting:
j-court-demones-m...
3
Solved
I've installed memcache and now how do I really view the data in memcache?
Is there any way to see the data present in cache inside memcache?
How do I really know whether memcache is getting data...
Byron asked 7/12, 2011 at 18:49
3
Im using new setting to increase item size in memcached, but i cant store something larger than 1mb through Django backend.
I know that memcache module require some setting to achieve thath, and D...
3
Solved
I'm using Memcached as backend to my django app. This code works fine in normal django query:
def get_myobj():
cache_key = 'mykey'
result = cache.get(cache_key, None)
if not result:
result = P...
Carnivore asked 12/7, 2016 at 4:25
11
Solved
Hello when I attempt to install pylibmc on OSX Lion using pip I get the following error:
./_pylibmcmodule.h:42:10: fatal error: 'libmemcached/memcached.h' file not found
#include <libmemcached...
Trista asked 10/2, 2013 at 22:25
4
How do you cache a paginated Django queryset, specifically in a ListView?
I noticed one query was taking a long time to run, so I'm attempting to cache it. The queryset is huge (over 100k records)...
Merna asked 13/1, 2014 at 4:9
5
I was wondering if I could get an explanation between the differences between In-Memory cache(redis, memcached), In-Memory data grids (gemfire) and In-Memory database (VoltDB). I'm having a hard ti...
Parnell asked 3/5, 2016 at 23:4
4
Solved
I am facing issue while getting value from cache.
java.lang.RuntimeException: java.lang.ClassCastException: com.mycom.admin.domain.User cannot be cast to com.mycom.admin.domain.User
Cache Confi...
Wieland asked 3/1, 2016 at 15:4
13
Solved
I'm trying to understand how Django is setting keys for my views. I'm wondering if there's a way to just get all the saved keys from Memcached. something like a cache.all() or something. I've been ...
Tacho asked 28/1, 2012 at 20:17
2
In my settings i have:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
and i have installed
https://pypi.org/proj...
Spitler asked 11/11, 2018 at 20:31
9
Solved
How can I get all the keys set in my memcached instance(s)?
I tried googling, but didn't find much except that PHP supports a getAllKeys method, which means it is actually possible to do this some...
5
Solved
I am using view caching for a django project.
It says the cache uses the URL as the key, so I'm wondering how to clear the cache of one of the keys if a user updates/deletes the object.
An example:...
Parabolize asked 9/1, 2012 at 5:48
3
When I run python manage.py shell and then:
from django.core.cache import cache
cache.set("stack","overflow",3000)
print cache.get("stack")
(output: ) None
I tried ...
Julieannjulien asked 10/9, 2012 at 18:27
3
We are currently using memcache for storing session data. I have heard that memcached or redis are better. I need to understand what is the difference between them? in order to understand which one...
3
I try to setup a development environment for developing on django itself.
Docs: Contributing / Running the test suite for the first time
python -m pip install -r requirements/py3.txt
It fails:
...
...
2
Solved
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 ...
Erde asked 16/6, 2023 at 12:59
1
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 c...
Vizier asked 20/6, 2023 at 20:1
1 Next >
© 2022 - 2024 — McMap. All rights reserved.