Hi Glen,

> 
> The init-stm step is still referenced in the documentation as being required 
> BTW.
> 

Thanks, I'll remove the reference.

> I had a couple of questions.
> 
> I noticed that when I create a reference (zk-ref) I need to provide an 
> initial value.  For each VM I do this for - it ends up clobbering the 
> previous value.  Is there anyway to create a reference without necessarily 
> clobbering existing data?

Yep, like Chris said, you can just leave off the initial value when creating a 
Ref or Atom, just like with the in-memory versions.

> 
> My second question is to do with derefs. The documentation says that Avout 
> caches multiple derefs and that it will invalidate the cache when the ref is 
> locally or remotely updated.  My own testing seems to indicate that the deref 
> still see the old values after a remote change is made.  If I wrap the deref 
> in a dosync!! however that seems to trigger the invalidation and I see the 
> correct value. Am I missing something?
> 

I can't reproduce this behavior, can you provide a code snippet where the cache 
isn't getting invalidated and maybe some additional details on your setup?

David

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to