[Catalyst] advent calendar memcached article misleading or
incorrect?
Bill Moseley
moseley at hank.org
Tue Dec 21 16:43:14 GMT 2010
On Tue, Dec 21, 2010 at 8:30 AM, Tommy Butler <ace at tommybutler.me> wrote:
> On 12/21/2010 10:06 AM, Bill Moseley wrote:
>
> The advent article shows the configuration at the end:
>
> <Model::MyAppDB>
>
> schema_class MyApp::Schema
> <connect_info>
>
> (your connect_info)
>
> cursor_class DBIx::Class::Cursor::Cached
>
> traits Caching
>
> </connect_info>
>
> </Model::MyAppDB>
>
>
> But (see line 25 of
> http://cpansearch.perl.org/src/MSTROUT/DBIx-Class-Cursor-Cached-1.0.1/lib=
/DBIx/Class/Cursor/Cached.pm)
> ...
> Where is "$attrs->{cache_object}" set? What is setting it? It isn't set
> in the config you quote above.
>
You seem to have trimmed this link in your email:
http://search.cpan.org/~rkitover/Catalyst-Model-DBIC-Schema-0.48/lib/Cataly=
st/TraitFor/Model/DBIC/Schema/Caching.pm
DESCRIPTION [image:
^]<http://search.cpan.org/~rkitover/Catalyst-Model-DBIC-Schema-0.48/lib/Cat=
alyst/TraitFor/Model/DBIC/Schema/Caching.pm#___top>
Enable caching support using
DBIx::Class::Cursor::Cached<http://search.cpan.org/perldoc?DBIx%3A%3AClass%=
3A%3ACursor%3A%3ACached>
and Catalyst::Plugin::Cache<http://search.cpan.org/perldoc?Catalyst%3A%3AP=
lugin%3A%3ACache>
.
>
> - What is passing $attrs->{cache_object} to DBIx::Class::Cursor::Cached::=
new()
> ?
>
- Where/when is the cache object created to which $attrs->{cache_object} is
> a reference?
>
- How do I really know if it's a memcached backend?
>
See above.
>
> --
> Tommy
>
> _______________________________________________
> 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/
>
>
-- =
Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20101221/cad36=
5c2/attachment.htm
More information about the Catalyst
mailing list