memcached

Non-serializable object error while working on Memcache

Hi everyone i was working with memcache, and when i compiled this code i got following errors. 2010-07-09 10:35:53.499 INFO net.spy.memcached.MemcachedConnection: Added {QA sa=localhost/127.0.0.1:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue 2010-07-09 10:35:53.520 INFO net.spy.memc...

Memcache returns false on long keys

I use Php memcache on PHP Version 5.2.4-2ubuntu5.10 Below you can find the info from phpinfo. When I use key larger than 250 characters memcache returns true on $memcache->set and false on $memcache->get . Any idea how to set it to work normally (truncate key at 250 chars)? If not - what would be the easiest way to override memcache ...

NoSQL (MongoDB) vs Lucene (or Solr) as your database

With the NoSQL movement growing based on document-based databases, I've looked at MongoDB lately. I have noticed a striking similarity with how to treat items as "Documents", just like Lucene does (and users of Solr). So, the question: Why would you want to use NoSQL (MongoDB, Cassandra, CouchDB, etc) over Lucene (or Solr) as your "dat...

.NET cache providers that support streaming?

Does anyone know any cache providers for .NET that support streaming data directly in/out by key, rather than serializing/deserializing objects? I was rather hoping AppFabric (Velocity) would, but it only appears to deal with objects like the built-in ASP.NET cache. ...

PHP Memcache Key Expire

I am not sure if this is possible. I was storing some information in a memcache server. The memcache entry i was storing was suppossed to have an expiry of 30 minutes. During that 30 minutes i could update the value of that memcache entry reference by the same key. But when i update the value i do not want to change the expire time. For ...

Caching Array from DB (MongoDB) in Node.js / Express.js

I wanted to add user search auto-complete (like Facebook's) to my Rails app on Heroku, and I chose to write it in Node.js because of the concurrency requirements. The search first pulls a user's friend list (of id's, which include all twitter friends, not just their friends on our site) from Mongo, then searches for users in that list, t...

(memcached + relational db) vs nosql

Memcached + relational db looks like a good solutions if you don't have to scale in magnitude of twitter or facebook... are there reasons when NoSQL would be preferred even if high scalability is not a requirement.. ...

Recommendations for in-memory object cache for .net

I'm wondering what people's experiences are with in-memory cache solutions for .net. We need an (ideally free) out-of-process caching solution that we can share between a number of different web sites (different app pools), and also some console apps that periodically run. We've tried a few solutions so far, both of which are good but ...

How to deal with expiring item (due to TTL) in memcached on high-load website?

When you have peaks of 600 requests/second, then the memcache flushing an item due to the TTL expiring has some pretty negative effects. At almost the same time, 200 threads/processes find the cache empty and fire of a DB request to fill it up again What is the best practice to deal with these situations? p.s. what is the term for this...

CMS Database design - Master database or Multi-Db per site

Hi, I am in process of designing my CMS that I am about to create. I was thinking about the database and how I want to go by approaching it. Do you think its best to create 1 master database for all my clients websites? or Should I have 1 database per site? What is the benefits and negatives on both approaches? I am always thinking abo...

memcached restart starts a new memcached and doesn't kill the old one

Hi all. I'm running my rails app in production mode and in staging mode on the same server, in different folders. They both use memcache-client which requires memcached to be running. As yet i haven't set up a deploy script and so just do a deploy manually by sshing onto the server, going to the appropriate directory, updating the cod...

What is a key-value memory storage system that is not intended to be persistent, but can store over 1MB?

Basically, I want memcached that can store over 1MB. ...

Using memcache in google app engine

I have created an app using GAE. I am expecting 100k request daily. At present for each request app need to lookup 4 tables and 8 diff columns before performing needed task. These 4 tables are my master tables having 5k,500, 200 and 30 records. It is under 1 MB (The limit). Now I want to put my master records in memcache for faster acc...

Perform atomic array modification in memcache

Suppose you want to keep an list of the last 10 visitors to your site in memcache. Every time that someone accesses your site, you want to push them onto an array and shift off the first visitor in the array. Of course, a potential problem is that multiple visitors could be overwriting and reading this array at the same time, possibly ...

in memory query mono/.net

I'm looking for a recommendation for the following scenario: I'd like to query an in memory store of CRM-like data 1) The store will be loaded completely on startup 2) The store will be kept up to date (assuming a queue here) 3) Queries can be by key, range or partial/wildcard matching on any number of attributes 4) The store needs to s...

why does memcached not support "multi set"

Can anyone explain why memcached folks decided to support multi get but not multi set. By multi I mean operation involving more than one key (see protocol at http://code.google.com/p/memcached/wiki/NewCommands). So you can get multiple keys in one shot (basic advantage is the standard saving you get by doing less round trips) but why ca...

ASP.NET and distributed caching in more than one web server

I need distributed cache to be used in more than one web server. I've tried a file based cache dependency, but it doesn't work in UNC path. I think .NET can not monitor the files on the UNC path. I know that Microsoft has presented a new feature in Velocity. But, is there any other solution (like memcache in PHP)? ...

Memcached lists and paging

The general pattern for storing data in memcached seems to be to store lists of ids, and then use multiget to retrieve the individual objects. But how are people dealing with caching large lists of ids, say the ids of the users in a group, when the list could be up to 10000 ids? I've thought about a strategy of splitting the list up in...

PHP APC and Memcache Benchmarking

Is there any simple test I can try to benchmark APC and Memcache, just to get a sense of the performance benefits of using them? I tried some simple stuff using microtime() and looping requests to my database and storing the results, first in cache and then without, but I didn't notice any significant performance boost. Thanks. ...

My memcache is timing out. Does anyone know why?

I am using memcached and python-memcache. On my cache server, iptables is set perfectly, and it's allowed: ACCEPT all -- dev anywhere The process is this: /usr/local/bin/memcached -d -u root -m 3900 -p 11211 I do this in Django but it's not working. It times out at cache.set. cache.set("test","laa",333) prin...