killme2008 / xmemcached

High performance, easy to use multithreaded memcached client in java.
http://fnil.net/xmemcached
Apache License 2.0
757 stars 281 forks source link

java.lang.ClassCastException: on decrement/increment #106

Closed eddurov closed 3 years ago

eddurov commented 4 years ago

Sometimes incr or decr command returns FALSE in memcache. So xmemcached should expect such behavior, but not cast to Long everytime like this: private long sendIncrOrDecrCommand() ... return (Long) command.getResult(); ... throwing java.lang.Boolean cannot be cast to java.lang.Long

killme2008 commented 4 years ago

What's your memcached version?