On 1/13/06, Carl Franks <[EMAIL PROTECTED]> wrote:
> The RDBO-Metadata docs reads:
>
> clear_object_cache
>
> Clear the memory cache for all objects of the
> Rose::DB::Object::Cached-derived class associated with this metadata
> object.
>
> Is it possible to clear the cache for all objects of a particular
> Rose::DB::Object::Cached-derived class _without_ having any object
> available?

Sure.  Remember that you can always get the metadata object for a
particular class by calling Rose::DB::Object's meta() class method:

http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object.pm#meta

Then you can call object methods (like clear_object_cache) on that
metadata object.  Example:

    MyClass->meta->clear_object_cache();

-John


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to