6 Replies Latest reply on Nov 15, 2007 1:45 AM by Sebastien Pennec

    "Manually" acquiring a lock on a node

    Sebastien Pennec Newbie

      Hello,

      In my project, we cache the result of a computation. This computation takes quite some time (5-6 seconds) to be done.

      When the definition of the computation is modified, the node corresponding to the modified computation is removed. At that time, the computation is updated, and its new result is cached.

      What I would like to do is get a lock on the computation's node (or parent), remove the node, update the value to cache and put the new value in the node. Only after that the node would be unlocked.

      Is there a way to do this?

      Thanks :)