guanqingan / xmemcached

Automatically exported from code.google.com/p/xmemcached
Apache License 2.0
0 stars 0 forks source link

xmc中incr/decr和memcached server的实现不一致 #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
memcached中的incr/decr的最大值是2^64 - 
1,而xmc的incr/decr因为使用的long型为2^63 - 1。

Original issue reported on code.google.com by XuanDi.W...@gmail.com on 20 Oct 2011 at 2:31

GoogleCodeExporter commented 9 years ago
如果要求完全一致的话,必须要用BigDecimal,效率上很受影响�
��大多数应用long应该是足够的。

Original comment by killme2...@gmail.com on 21 Oct 2011 at 3:04

GoogleCodeExporter commented 9 years ago
其实是可以分段来实现的,long以内的用Long,大于long的MAX_VALU
E的使用BigDecimal。当然这个issue并非很重要。

Original comment by XuanDi.W...@gmail.com on 22 Oct 2011 at 1:43

GoogleCodeExporter commented 9 years ago

Original comment by killme2...@gmail.com on 27 Jun 2012 at 3:27