memcached

How to get caches_action to set expires headers when there is a hit in memcached?

I have an action which I cache using caches_action :my_action, :expires_in=>1.hours and also set the expires headers in the action itself using def my_action ... expires_in 1.hours send_data(...,:disposition => 'inline',:type => 'image/png',:filename => params[:title]+".png") end However, when I look at the cache control r...

Does memcached share across servers in google app engine?

On the memcached website it says that memcached is a distributed memory cache. It implies that it can run across multiple servers and maintain some sort of consistency. When I make a request in google app engine, there is a high probability that request in the same entity group will be serviced by the same server. My question is, say th...

Memcache db models to make search more efficient

Hello, I need to set up some kind of e-store with search functionality. For every search request I got to query structure like this: product: -name -tags --tag -ingredients --ingredient ---tags ----tag ---options ----option -----option details -variants --variant ---tags ----tag ---options ----option measure ----value ---price Now im...

How to use memcached with Joomla

How can I use memcache in Joomla? I'm a newbie in this field so please be descriptive with your answer. ...

Getting Started with CacheMoney

I recently installed cache-money. After some difficulties getting memcached and cache-money set up, I thought I had it working. It cached the one query on my login page fine. I login, and go to my message index page and get this error: indices delegated to @cache_config.indices, but @cache_config is nil: Slug(id: integer, name: strin...

Memcached concurrency w/ lighttpd php

I'm having an issue with memcached. Not sure if it's memcached, php, or tcp sockets but everytime I try a benchmark with 50 or more concurrency to a page with memcached, some of those request failed using apache ab. I get the (99) Cannot assign requested address error. When I do a concurrency test of 5000 to a regular phpinfo() page. Ev...

How do I configure my nhibernate project to use memcached in the hibernate.cfg.xml?

I am trying to configure the hibernate.cfg.xml file to use memcache. I see the properties "cache.provider_class" and "cache.use_second_level_cache" however I do not see how I can add the server host/port. ...

Where is the best place to put cache-evicting logic in an AppEngine application?

I've written an application for Google AppEngine, and I'd like to make use of the memcache API to cut down on per-request CPU time. I've profiled the application and found that a large chunk of the CPU time is in template rendering and API calls to the datastore, and after chatting with a co-worker I jumped (perhaps a bit early?) to the ...

alternative to memcached that can persist to disk

I am currently using memcached with my java app, and overall it's working great. The features of memcached that are most important to me are: it's fast, since reads and writes are in-memory and don't touch the disk it's just a key/value store (since that's all my app needs) it's distributed it uses memory efficiently by having each ob...

Struts2 Interceptor *after* JSP is rendered - how?

I was wondering if I can capture the result of an action after the result returns and the JSP is rendered. I want to be able to take the entire result (generated HTML) and push it into memcached so I can bring it via Nginx with-out hitting the application server. Any ideas? PS: I know I can run the interceptor after the action executes ...

Rails Memcached Caching

Hello there, I am using memcached in production on a high traffic website and have only just switched to using Rails. I am using Rails 2.3.2. My question is: Is caching of of queries done automatically with this version of Rails? Or do I have to explicitly cache these queries? I have seen conflicting documentation on this issue, and...

Ok to use memcache in this way? or need a system re-architecture?

Hi all, I have a "score" i need to calculate for multiple items for multiple users. Each user has many many scores unique to them, and calculating can be time/processor intensive. (the slowness isn't on the database end). To deal with this, I'm making extensive use of memcached. Without memcache some pages would take 10 seconds to lo...

MemCached client with Delphi

Hallo, Does anyone perhaps know how to interface with a MemCached server (linux) from within a Delphi win32 application? I am unable to find a general C DLL client, or perhaps delphi code to communicate to the server. Any suggestions/help would be appreciated. Thanks Eric Grobler ...

What's the best caching mechanism to use for .Net web applications?

What caching mechanism should I use for a .Net web application? Memcached seems to be the best for the LAMP stack and Linux in general, but I'm not so sure that it's the answer for a .Net web application running on Windows. My requirements are that it be distributed and that it run on Windows. ...

Is it crazy to not rely on a caching system like memcached nowadays ( for dynamic sites )?

I was just reviewing one of my client's applications which uses some old outdated php framework that doesn't rely on caching at all and is pretty much completely database dependent. I figure I'll just rewrite it from scratch because it's really outdated and in this rewrite I want to implement a caching system. It'd be nice if I could ge...

Rails session_id in URL

I am trying to pass a session_id in a URL with Rails (2.3.1). The passing of the id is working through default_url_options, I am using memcache as a session store and I've set :cookie_only to false in environment.rb However it still does not seem to work. If I log in successfully, the first page is shown correctly, however when I contin...

cache_money 'nil.repository' error

I'm just trying out cache_money gem on an existing app and getting this error: NoMethodError (You have a nil object when you didn't expect it! The error occurred while evaluating nil.repository) I think I have my memached server configured properly. I'm using Rails 2.2.2 EDIT: Stack trace: NoMethodError (You have a nil object when ...

PHP ,MySQL memory DB and memcached

I've a site which is running in a shared host without memcached. So, how about make a MySQL memory DB as object cache just like memcached? ...

pecl memcached on windows

I'm using Windows XP SP3 and I need to install libmemcached (NOT MEMCACHE), the php class, through PECL. However, every time I try to it tells me that it can't find memcached.dsp. Is there a way to install libmemcached on windows through PECL? ...

Fully cached dynamic website

I would like to cache my website with memcache as much as possible. There are rare modifications (somewhat like in a forum) which I am perfectly ok with re-caching once change is made. My only concern is login information (similar to how stackoverflow has a bar on top). This is how I am doing it right now: $('div#user_bar').load('/logi...