Railo and Memcache installation

160 views
Skip to first unread message

Peter Pham

unread,
Jun 24, 2012, 2:24:11 AM6/24/12
to ra...@googlegroups.com
I'm running Railo 3.3.1.000 stable release and want to install Railo Memcached driver.
But currently all I see in Railo admin is Railo Memcached driver BETA version, and appears to have not been updated since 2010.
Is there any development on this?
or if anyone has successfully install Memcache in Railo, can you give me a walkthrough.

Also, according to this post:
http://blog.getrailo.com/post.cfm/cache-advanced-part-2
or
http://blog.getrailo.com/post.cfm/using-the-railo-cluster-cache
Railo does support Memcache but it does not seem to be part of Railo core caches right? (like EHCache, etc.)


Peter

Andrea Campolonghi

unread,
Jun 25, 2012, 3:17:10 AM6/25/12
to ra...@googlegroups.com
Peter.
While the memcached interface does not change I guess the driver does not need any sort of update.
The memcached java driver is hard tested so you can trust in it.

Andrea
Andrea Campolonghi
and...@getrailo.org



Peter Pham

unread,
Jun 26, 2012, 8:04:59 PM6/26/12
to ra...@googlegroups.com
I was be able to install extension Memcached Driver Beta without failure. :)
Next, I try to create a memcache source and marked it as "Storage"
Then, I set up a sample application. In my Application.cfc:

this.name = "memcacheddemo";
this.applicationTimeout = createTimeSpan(0,2,0,0);
this.sessionManagement = true;
this.sessionTimeout = createTimeSpan(0,0,20,0);
this.sessionStorage="testMemCached";

I then set up a simple page where I store some value into the session scope.
I assumed that session scope should now be saved into memcache, but not sure how to prove that it is correct.
After I stored some value into session scope, I restart my Railo server.
Reopen the page, previous session scope has lost.
According to this article:
http://blog.getrailo.com/post.cfm/railo-3-3-beta-released
"... Furthermore, a session can survive a restart of the server, even the "onSessionEnd" is executed after a restart of the server! ..."

So I thought that my session (which was assumed to be saved correctly) should come back with the custom value that I has been previous saved.
Or has I misunderstood something?
Is there a way to check memcache to see if any value was saved.

Peter

Andrea Campolonghi

unread,
Jun 27, 2012, 3:25:24 AM6/27/12
to ra...@googlegroups.com
You can install a memcached monitor to see what is actually stored.
A question.
What is your final goal?
Do you need a clustered session cache?

Andrea

Andrea Campolonghi



Peter Pham

unread,
Jun 27, 2012, 7:10:12 AM6/27/12
to ra...@googlegroups.com
Hi Andrea,

Yes, my ultimate goal is to use memcache as session storage on a clustered environment session.
Do you have any advise on implementation or pro/cons using memcache?
Regarding to a memcached monitor, any recommendation on a good tool that can be perhaps used well with Railo/ColdFusion?

Peter

Andrea Campolonghi

unread,
Jun 27, 2012, 7:35:06 AM6/27/12
to ra...@googlegroups.com
Peter,

Memcached is a rock solid cache so is a good choice. I would recommend to give a look to Redis. Is really fast.
As per monitor I think anyone of the available solutions will be good if you just wanna see what is inside the cache.

Hope this helps.

Andrea
Andrea Campolonghi



Reply all
Reply to author
Forward
0 new messages