On Tue, Dec 21, 2010 at 8:30 AM, Tommy Butler <[email protected]> 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/Catalyst/TraitFor/Model/DBIC/Schema/Caching.pm

DESCRIPTION [image:
^]<http://search.cpan.org/~rkitover/Catalyst-Model-DBIC-Schema-0.48/lib/Catalyst/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%3APlugin%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: [email protected]
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>
>


-- 
Bill Moseley
[email protected]
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to