Waiting for Persistence
I'm new to Membase and am evaluating it along with other datastores.
My project is a game that in places requires complex player to player interaction (for example trading of items and currency), and for these operations I would like to know with certainty that they have taken place in case I need to roll them back for whatever reason.
Looking at 1.7 I see the 'sync' command has been added but at the moment this guarantees that the data has been persisted to another node, rather than to disk.
Would it be possible to get the behaviour I require by setting my values with an expiry date in the past, and then immediately getting the data? The idea being that on the read the cache is invalid and requires a disk read, meaning I can tell if the set has persisted to disk.
Failing that, is there a way to tell if a value has been written to disk? It's ok for me to keep the data hanging around in the game server until it can get confirmation of the write.
Thanks for reading.