[Catalyst] Two questions about caching

Hugh Barnard hugh.barnard at gmail.com
Fri Oct 19 10:18:55 GMT 2012


Thanks Alexander...the FastMmap is being used for caching...but this isn't
a really high-traffic system either, so it may not be an issue...thanks
again Hugh

On 19 October 2012 10:55, Alexander Hartmaier <
alexander.hartmaier at t-systems.at> wrote:

>  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
> users 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
> regardless 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
> anecdotes that suggest this.
>
> I'm using FastMmap since years without problems for our company apps but
> performance 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
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.u=
k/
> 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
> privileged.
> If you are not the intended recipient, please notify the sender and then
> delete this e-mail immediately.
>
> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*=
"*"*
>
> _______________________________________________
> List: 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/
>
>


-- =

http://www.hughbarnard.org
http://www.twitter.com/hughbarnard
http://www.big-wave-heuristics.com/
<http://www.hackney-environment-network.org.uk/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20121019/d23b8=
dea/attachment.htm


More information about the Catalyst mailing list