memcached

What is -b switch in memcached

memcached.exe -h -b run a managed instanced (mnemonic: buckets) what the heck does this mean? Googling did not help :( ...

Is there anything like memcached, but for sorted lists?

I have a situation where I could really benefit from having system like memcached, but with the ability to store (per each key) sorted list of elements, and modifying the list by addition of values. For example: something.add_to_sorted_list( 'topics_list_sorted_by_title', 1234, 'some_title') something.add_to_sorted_list( 'topics_list_s...

Best Solution for Caching....

Hi there, Where is the best place to implement caching in a web based app? At the presentation layer (hope not)? At the Business Logic Layer? At the data layer? I'm going to use something like memcached or MS Velocity under the hood. I'm just finding myself writing so much code to update the cache here and there in the business lo...

Best way to combine fragment and object caching for memcached and Rails

Lets say you have a fragment of the page which displays the most recent posts, and you expire it in 30 minutes. I'm using Rails here. <% cache("recent_posts", :expires_in => 30.minutes) do %> ... <% end %> Obviously you don't need to do the database lookup to get the most recent posts if the fragment exists, so you should be able to...

What memcached for Win32 .net api do you use and recomend?

What memcached for Win32 .net api do you use and recomend? ...

Accessing a PHP-set memcache key from Python

I'm storing a value in memcached using PHP's Memcache extension and trying to retrieve it in a daemon written in Python sitting behind my webapp. But, it keeps returning None or throwing "local variable 'val' referenced before assignment". I'm sure I'm looking for the same key, and there's only one mc server available to either app (lo...

Should I cache data pre-emptively

I have an application that receives messages from devices every few minutes. I also have clients that request the last 10 messages for a particular device. I am suffering with some database saturation and I wish to cache this list by device. The basic premise is that when a message is received from the device then the processor that rec...

action caching and queued posts in rails

I have a landing page on rails with "blog" style posts. Since it's the most visited page on the site, I'm using action caching. The cache is cleared upon a change of the model. However, when adding new blog posts, i'd like to be able to create posts in the --future-- (a la queueing posts in Tumblr). So simply observing the model won't...

What is memory overhead for storing (1 bit) object in memcached?

I am trying to figure out if I can store 100Mil objects on single server ...

Using Apache::Session::Memcached with MasonX::Request::WithApacheSession

I'm trying to use Apache::Session::Memcached in an HTML::Mason project where I'm using MasonX::Request::WithApacheSession to handle my sessions. Unfortunately Apache will not launch when I plug in the Memcached module instead of the MySQL one. My custom handler looks something like this (a few snips here and there): my $ah = HTML::Mas...

Is there an ORM-like wrapper for memcached

I'm looking for a ruby gem (or rails plugin) which abstracts the details of memcached in the same way that ActiveRecord abstracts the details of SQL. I am NOT looking for something to help cache ActiveRecord models in memcached. I'm sure there are approximately 4215 gems that will help with that problem. Ideally what I'd like is to be a...

Google App Engine: Memcache or Static variable?

Well, I think I have a very basic doubt here: I'm developing an app on GAE (Java) and performing a query to the datastore that returns a lot of entities, so I need to cache it. I was using memcache and it was working great, but if I keep the list of entities in a static variable, the whole request goes as twice as fast than using memca...

Achieving Fast Lookups for a Large Dataset: MySQL MEMORY(HEAP), Memcached, or something else

Currently working on a project that is centered around a medical nomenclature known as SNOMED. At the heart of snomed is are three relational datasets that are 350,000, 1.1 mil, and 1.3 mil records in length. We want to be able to quickly query this dataset for the data entry portion where we would like to have some shape or form of auto...

Why would Django's cache work with locmem but fail with memcached?

Using Django's cache with locmem (with simple Python classes as values stored in lists/tuples/maps) works perfectly but does not work with memcached. Only a fraction of the keys (despite ample memory allocated and large timeouts) make their way into memcached, and none of them appear to have any associated value. When they are retrieve...

Rails - List of active sessions

Hi there, I am trying to figure out the most straightforward and safe way to count the number of active sessions using a memcached storage option. With DB based session storage, I can just count the number of rows in the table but can't do the same thing with memcached. Thanks, Vikram ...

How does Tokyo Cabinet handle large integers?

I have implemented a queue on top of TC (Tokyo Tyrant to be specific). I am using memcache compatible function increment to keep track of queue head and tail. I just want to know what is the limit for the integers stored (64 bit?) by TC and what happens when increment function is called after the number stored is at maximum value allowed...

Where does APC store its opcode and user variable cache?

The reason I ask is because when using top I don't see a process for anything like APC. So I assume that the memory usage would be accounted for in an apache process. Is that the case, and does that mean that the memory APC is using is replicated in each apache process, thereby taking up potentially much more memory than what was origi...

memcached - using with a C# asp.net application

I'm considering using memcached (at some point) in my application i'm currently developing. Eventually, i'm planning on hosting this on Amazon EC2 - i was just wondering, would it be possible to have a linux server (aws instance) running memcached, and use the windows server (aws instance) for the app, but set it to use the linux serve...

How do you work around memcached's key/value limitations?

Memcached has length limitations for keys (250?) and values (roughtly 1MB), as well as some (to my knowledge) not very well defined character restrictions for keys. What is the best way to work around those in your opinion? I use the Perl API Cache::Memcached. What I do currently is store a special string for the main key's value if the...

Enyim memcached provider CPU spike

I've implemented a caching interface and memchanged provider for our website using enyim. Works great in testing until we get to load testing, where it spikes the CPU of w3wp.exe to near 100%. We have a configuration property to switch the caching provider back to dotnet's API and the CPU goes back to 5-7%. Has anyone experienced simi...