memcached

MS Velocity vs Memcached for Windows?

I've been paying some attention to Microsoft's fairly recent promoting of Velocity as a distributed caching solution that would compete with the likes of Memcached. I've been looking for a 64bit version of Memcached for Windows for some time now with no luck, and since everything about the ASP.Net MVC project I'm working on is 64bit, it...

Memcached Settings for stopping key expiration

Hi, I want to know is there any way for Memcached to stop its LRU collection of keys so that i can find at what point the given memory allocated for memcached gets full. I dont want memcached to flush the old keys when it goes out of space. ...

Memcached best practices - small objects and lots of keys or big objects and few keys?

I use memcached to store the integer result of a complex calculation. I've got hundreds of integer objects that I could cache! Should I cache them under a single key in a more complex object or should I use hundreds of different keys for the objects? (the objects I'm caching do not need to be invalidated more than once a day) ...

Using memcached in Rails app with Single Table Inheritance?

I have a Rails app that uses STI to handle different types of Users, such as: class Admin < User ... end I want to use memcached, but I keep getting the dreaded "unknown class/module" error. I've tried pre-loading all of my ActiveRecord models to no avail. The first request works as normal, but the first pull from memcached errors o...

Cache-Money: Only use in Production?

I use the cache-money gem for transparent usage of Memcached. Using the supplied config file it is enabled on all modes (development, test, production). Is there a way to only activate cache-money in production mode? It's not immediately clear how to do this, and it's a total pain dealing with caching in development mode. ...

PHP: Attempting to connect to a memcache server, but getting "Permission Error (13)"

When I try to connect to my memcache server, I get "... Permission Error (13) ..." in my PHP error log. I can connect through telnet and even get a response, but can't connect through PHP. The script works when run from the command line, but when run through Apache it fails. Any ideas? ...

Using Reflection to get Method Name and Parameters

I am trying to workout a way to programatically create a key for Memcached, based on the Method Name and parameters. So if I have a method: string GetName(int param1, int param2); It would return: string key = "GetName(1,2)"; I know you can get the MethodBase using reflection, but I need the parameters values in the string not the...

Memcached and Velocity

I'm investigating using either Memcached or Velocity for distributed caching over a cluster of servers after reading Scott Hanselman's answer to this question. Does anybody know of a Microsoft web site that uses Velocity for its caching? If Microsoft aren't using it then does anybody know of any relatively popular web site that's using i...

Caching and Session state management using Microsoft Velocity and Memcached

I was looking at Microsoft Velocity and memcached to find a solution for some session management issues - What is the difference between caching that is provided by Microsoft Velocity, memcached and session state management? I mean memcached and microsoft veolocity provide distributed caching capabilities... so using these to store sess...

How to detect and debug stale cache entries?

I am using memcached with PHP trying for heavy caching to avoid db-reads. I am invalidating the cache on an update (application invalidates). But, stale cache data is becoming a big issue. Mostly, this is due to bug in invalidation (invalidates wrong key OR forgetting to invalidate the cache entry on an UPDATE). Is there any good method...

Best way to Implement a MySQL Hash Table?

Background I'm currently developing an online community and I want to store some temporary information in a hash table. Currently this information is being stored in memcached, however, should the memcached service need to be restarted or failed, I would like to resort back to the on disk hash/cache. The Question What is the most effe...

What's the best serialization method for objects in memcached?

My Python application currently uses the python-memcached API to set and get objects in memcached. This API uses Python's native pickle module to serialize and de-serialize Python objects. This API makes it simple and fast to store nested Python lists, dictionaries and tuples in memcached, and reading these objects back into the applic...

Caching system like memcached but where I need to list what is in the cache

What's the best caching system/daemon that supports get, put, delete and list (memcached, I think, doesn't support list) An example I would like to use memcached for my caching solution but I'm stuck with the application design that I currently have which is that I cache the following 3 URLs I need to always have different cache keys...

How to use memcached as a front-end to the ASP.NET Profiling system

Our situation: we have a busy ASP.NET site and use the user profile intensively. This means that not only do we read the profile on every request, but we also write (at least something) in it on most requests. Users typically spend like 15 minutes on our site. We use memcached as a caching system and are very happy with that. Now, I was...

What would you recommend for a large-scale Java data grid technology: Terracotta, GigaSpaces, Coherence, etc?

I've been reading up on so-called "data grid" solutions for the Java platform including Terracotta, GigaSpaces and Coherence. I was wondering if anyone has real-world experience working any of these tools and could share their experience. I'm also really curious to know what scale of deployment people have worked with: are we talking 2-4...

Memcache sharing

Is it possible to share a single instance of a Memcache between multiple projects. Suppose I push one object inside the memcache in one project, is it possible for me to retrieve the same object from a different project. ? ...

MySQL Performance

Lately my queries before caching into memcache have been taking forever to process! In this example, it took 10 seconds. All I am trying to do is get the 10 most recent hits in this case. I am getting the feeling that it loads all 125,592 rows then only returns 10, am I right? # User@Host: root[root] @ localhost [] # Query_time: 10 L...

Visualising Memcached RAM consumption over time

I'd like to visualise the RAM usage of a Memcached daemon - what is the best utility to use? Ideally I'd like to user Perl. ...

Memcached 1 Meg Limit, Enyim .Net Client

There is a limit of 1 meg for objects in memcached. Whats the best way to store objects larger than this? I'm using the Enyim .Net client. ...

PHP error: Unable to Load Dynamic Library (memcache.so)

error_log shows the following line on startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20060613/memcache.so' - (null) in Unknown on line 0 The file exists and it compiled properly. PHP version is 5.2.6. After Googling for a couple of hours I managed to find a couple of similar problems, but no solutions...