[Catalyst] Two questions about caching

Alexander Hartmaier alexander.hartmaier at t-systems.at
Fri Oct 19 09:55:23 GMT 2012


On 2012-10-19 09:57, Hugh Barnard wrote:
Hi folks

The first question is a little 'simple' but I need to be sure anyway:

1. If I go $c->cache->set("key", $value);  is that available to all other u=
sers within the catalyst instance or just for that user session? Sorry!
As you see the cache is on the $c catalyst app instance so it's the same re=
gardless of other plugins like session.
You can create a special key that contains the user id if you need per user=
 caching, but you are responsible for the security of the implementation.

2. FastMmap vs Memcached [something I know 'outside' Catalyst]. It looks as=
 though Memcached has better performance for more complex structures?
Any comments or [better] benchmarks welcome, I seem to only have forum anec=
dotes that suggest this.
I'm using FastMmap since years without problems for our company apps but pe=
rformance isn't critical because they have not much traffic.
Are you talking about using it for caching or session storage?
If session storage and you have your app balanced over multiple servers you=
 need a common session storage anyways.

Thanks, in advance Hugh Barnard

--
http://www.hughbarnard.org
http://www.twitter.com/hughbarnard
http://www.big-wave-heuristics.com/




_______________________________________________
List: Catalyst at lists.scsys.co.uk<mailto:Catalyst at lists.scsys.co.uk>
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/




*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*=
"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*=
"*
Notice: This e-mail contains information that is confidential and may be pr=
ivileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*=
"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20121019/a9299=
1da/attachment.htm


More information about the Catalyst mailing list