good one, thx

On Monday, November 5, 2012 5:30:11 PM UTC+8, Dustin wrote:
>
> allister ke <allis...@gmail.com <javascript:>> writes: 
>
> > For example, I want to get the data and clear it at the same time. 
> > DELETE after GET is not good, since it loses data when many 
> > connections are also getting and deleting. 
>
>   You can easily achieve the same semantic results. 
>
>   In the binary protocol, you can get with CAS and then delete with CAS 
> and confirm both: 
>
>   a) You deleted the thing you got. 
>   b) You were the only client to have done so. 
>
>   If the deletion succeeds, you were the only one to observe this value 
> and nobody else can.  If the deletion fails, you ignore the value you 
> retrieved. 
>
> -- 
> dustin 
>
>

Reply via email to