On Jul 28, 2013, at 9:37 PM, Ben Schofield <dbschofi...@gmail.com> wrote:

> In my custom provider I do a prefetch for all the resources of a given type 
> and cache the data.  I would like to be able to single flush to persist all 
> the changes (updates, additions, deletions) to all the resources in one 
> command.  Something like a global flush that is called after all the 
> resources of a given type have been processed.  Is this possible or am I 
> restricted to flushing on every resource?

Hi Ben - I don't think there is a class-wide 'flush'.

The reason I didn't build that is that in most cases you don't know when a 
given resource will actually be needed.  E.g., you might have a Host, then a 
Service, then a Host, then another Service.  If you just flushed Host at the 
end, then that first service (and, in fact, the second) might not work.

Does your use case avoid this problem somehow?

-- 
Luke Kanies | http://about.me/lak | http://puppetlabs.com/ | +1-615-594-8199
Join us at PuppetConf 2013, August 22-23 in San Francisco - 
http://bit.ly/pupconf13

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-dev.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to