memcached Questions
4
Solved
Is it possible to somehow run Rails.cache.clear and only clear keys with a certain name/string?
I don't want to clear the entire cache...just keys with the string blog/post in the name (ie. blog/p...
Colecolectomy asked 17/8, 2012 at 12:2
2
Solved
I'm using the Memcached::set() and Memcached::get() methods. The documentation states that if an error occurs, or, in general, to check the status of these methods, I should call Memcached::getResu...
7
Solved
I've pasted the example from php.net for using memcached in php and I'm getting:
Fatal error: Class 'Memcache' not found
I have this in my php.ini:
[memcache]
memcache.hash_strategy = "consi...
Hilel asked 17/4, 2010 at 16:8
3
I'm using Django with Django Rest Framework and uWSGI. I have memcached set up on the server with pylibmc backend. I have Django configured for per-site cache so every view should be cached except ...
Teevens asked 7/11, 2016 at 22:12
3
when memecached or Redis is used for data-storage caching. How is the cache being updated when the value changed?
For, example. If I read key1 from cache the first time and it missed, then I pull ...
4
Solved
In Laravel you can place items in the Cache with a tag like:
Cache::tags('bans')->put($result->ip, $result->reason);
But I can't seem to find a way to get all items with a certain tag....
7
Solved
A client's Django application is intermittently (about twice a day) throwing RuntimeError("Unable to create a new session key."):
Traceback (most recent call last):
File "/usr/loca...
Hypothyroidism asked 29/7, 2011 at 5:55
5
Solved
I have installed memcached binary file in Windows 7 and started it as server.
When I type wmic process get description, exetuablepath | findstr memcached.exe I get the response: memcached.exe c:\m...
12
How do I check in PHP if a value is stored in Memcache without fetching it? I don't like fetching it because the values I have set are all 1MB in size and after I fetch it, I have no use for it, so...
3
Solved
Yesterday, I found this cool script 'memcache-top' which nicely prints out stats of memcached live. It looks like,
memcache-top v0.6 (default port: 11211, color: on, refresh: 3 seconds)
INSTANCE ...
Etka asked 19/4, 2013 at 17:19
4
Solved
Say, I'm Fechting thousands or record using some long runing task from DB and caching it using Redis. Next day somebody have changed few records in DB.
Next time how redis would know that it has to...
6
Solved
Is there a way to tell cURL command not to use server's side cache?
e.g; I have this curl command:
curl -v www.example.com
How can I ask curl to send a fresh request to not use the cache?
Note: I a...
8
Solved
What's memcached's maximum key expiration time?
If I don't provide an expiration time and the cache gets full, what happens?
Piety asked 13/9, 2009 at 17:36
8
Solved
I need to return a rather big file (11MB) to the user. For certain reasons, I can't just provide a direct url to the file (http://www.sample.com/mybigfile.exe); instead it must be accessed through ...
5
Solved
Question
In Django, how can create a single cached version of a page (same for all users) that's only visible to authenticated users?
Setup
The pages I wish to cache are only available to authentic...
4
Solved
I have memcached installed with libmemcached. Also I have installed igbinary.
This is my php.ini:
; Directory in which the loadable extensions (modules) reside.
;extension_dir = "./"
extension_di...
3
Solved
I realize that this might be a vague question the bequests a vague answer, but I'm in need of some real world examples, thoughts, &/or best practices for caching data for a web app. All of the ...
Wandie asked 22/11, 2012 at 19:34
2
Solved
I'm trying to have atomic increase-or-create operation in Django cache. I'm using memcache as backend. Memcache client's incr_async() function takes initial_value parameter. The meaning is:
If t...
3
The official php7 docker image has the following example:
FROM php:7.0-fpm
RUN apt-get update && apt-get install -y libmemcached-dev \
&& pecl install memcached \
&& dock...
Sufficient asked 30/11, 2016 at 17:18
5
Solved
I am currently using Heroku's Memcached in a Rails 3 app and would like to move over to Elasticache because the pricing is much more favorable. Is this possible? Is the configuration relatively str...
Fleecy asked 14/6, 2012 at 23:34
3
Solved
In a Django project of mine, I run this command to run the project on localhost:
python manage.py runserver
It results in the error:
Importerror: No module named memcache
However, I've already ...
5
We are currently using Nginx as our server and memcached for caching mechanism. I was inspecting PHP error logs and lots of PHP Warnings about memcached caught my attention.
PHP Warning: Memcache...
Antarctica asked 8/1, 2013 at 14:37
4
If a session handler is based off of memcached, and the memcache server is restarted, is the data saved or does all session information need to be recreated?
If not, is memcached even a reliable f...
3
Solved
How to flush all of the cached contents of Docker container memcached from command line without restarting memcached?
1
I have read that netflix uses evcache , which is a wrapper over memcache and evcache proves better than memcache
In general it is said that redis server as a better cache than memcache, was trying...
© 2022 - 2024 — McMap. All rights reserved.