I am running Django (1.0.2) on Google App Engine, and would like to know which (if any) of the following Django caching modules ought to inherently work with Google's memcache implementation:
Middlewear
django.middleware.cache.UpdateCacheMiddleware
django.middleware.common.CommonMiddleware
django.middleware.cache.FetchFromCacheMiddlew...
I have a list of entities which I want to store in the memcache. The
problem is that I have large Models referenced by their
ReferenceProperty which are automatically also stored in the memcache.
As a result I'm exceeding the size limit for objects stored in
memcache.
Is there any possibility to prevent the ReferenceProperties from...
I have Memcache installed and working for PHP apps run through Apache (v2.2) but when I try to run a .php file in the command-line i get this error:
Fatal error: Class 'Memcache' not found in /usr/local/Matters/app/matters-common/connection.php on line 94
Line 94 is:
$memcache = new Memcache;
Other info:
CentOS 5.2
PHP 5.2.5 (cli)...
Hello,
This one could be a trivial 'yes or no' question but still could be helpfull. Could the C/C++ library libmemcached be used in a distributed file system ? I am asking this one because in all documentation on the net I came accross memcached was mostly assosciated with caching in web-service applications.
An example : Let there be...
Hi,
I got very strange behaviour with cackephp engine = memcache. The problem is that the cached items always expire earlier than it has. Setting engine = file fix the problem but this is not what i need.
Any help will be appreciated!
P.S. Im using cakephp 1.2.3.8166 stable.
...
I have been working in trying to optimize a webservice that is required to return somewhat quickly (less than 1 second) and is required to maintain a high load of requests (greater than 1000/second). We are using memcached as a way to store objects "in memory". It seems we are getting a large number of timeout errors from memcache.
[Thu...
Some questions about memcached
I would like to implement memcache on my social network site, being a social network most data changes very frequently,
For example if I were to store a users 10,000 friends into cache, anytime he adds a friend cache would need to update, easy enough but also it would need to update anytime someone else ad...
I have a social network
The users table is around 60,000 rows
The friends table is around 1 million
rows (used to determine who is your
friend)
I am wanting to do a friend feed, wall, whatever you like to call it, it will show things like user status post (twitter type posts), it will show a few different items but for the start it w...
Is there a way to invalidate entries in memcache according to a wildcard key?
So if I have the following memcache keys:
data/1
data/2
data/3
Is there a way I can invalidate those keys with something like data/*? It would be extremely helpful to clear out a bunch of stale data in one swoop.
...
Can you store an Array in Memcache?
I would like to store;
A user ID number
A user's photo URL
A users name
Together as an array, someone told me you could and then someone told me you couldn't
Which is it?
...
I finally got memcache running on my home pc so I can start developing with it at last!
I am not off to a good start though I am trying to use the code on
php.net @ memcache-set
I am unable to get either example code to work that they post
I tried this:
<?php
/* procedural API */
$memcache_obj = memcache_connect('memcache_host', 112...
environment.rb:
config.cache_store = :mem_cache_store, '127.0.0.1', { :namespace => RAILS_ENV.to_s }
development.rb:
config.action_controller.perform_caching = true
This is the memcached output when I call the url.
get development:views/127.0.0.1:3000/aktionen.xml sending key development:views/127.0.0.1:3000/aktionen.xml END set ...
I just started playing with memcache(d) last night so I have a LOT to learn about it
I am wanting to know if this code is a good way of doing what it is doing or if I should be using other memcache functions
I want to show a cache version of something, if the cache does not exist then I generate the content from mysql and set it into c...
Take this code for example
$memcache= new Memcache();
$memcache->connect('127.0.0.1', 11211);
$rows2= $memcache->get('therows1');
if($rows2 == ''){
$myfriends = findfriend2();
$memcache->set('therows1', $myfriends, 0, 30);
}else{
echo '<pre>';
print_r($rows2);
echo '</pre>';
}
The connection;
$memcache->connect('1...
1)
I understand I can call this
$memcache_obj = memcache_connect('memcache_host', 11211);
in the header files of my site with no impact on pages that don't use memcache
but what about this
$memcache->connect('127.0.0.1', 11211);
Should this be called on a page to page basis?
2)
what if the server does not have enough memory to w...
Hi,
I'm using Memcached PHP library (based on libmemcached) and I'm wondering how can I change predefined constants in PHP. I'd like to use key distribution based on ketama.
Memcached is compiled as a PHP extension.
Thank you.
...
I am running lampp on a 64 bit machine by installing ia32-libs. Problem is when I try to install libmemcached on the same machine, it gets compiled as 64 bit. I changed the script and got it to compile for 32 bit but when I restart apache, it complains about openssl not being 32 bit. Looks like I'll have to compile the entire world as 32...
Hello, my configuration:
Windows 2008
IIS 7
PHP 5.2.10 / FastCGI
Memcache as a Windows Service
I tried to use the php_memcache extension for PHP but it doesn't load. This extension comes with PECL 5.2.6
Any idea? Do you know if exist a php_memcache"d" extension for PHP on Windows?
BR Santiago
...
I'm pretty sure this is not Serverfault material, so bear with me.
Wanting to implement a cache system for our application, we've started integrating with Memcached. Recently I started hearing of Hypertable, and saw some great benchmarks done with that..
However, I couldn't find good comparison between the two.
Just to get things stra...
Hi,
How could I get a /22 network address from an IP address?
Like:
/24 of 193.95.221.54 is 193.95.221.0
/16 of 193.95.221.54 is 193.95.0.0
/8 of 193.95.221.54 is 193.0.0.0
/22 of 193.95.221.54 is 193.95.X.0
I'd like to cache GeoIP data for 1024 IP addresses with a single cache entry to conserve cache space and number of lookups (Ge...