conver Duration to number

because libmemcached don't accept Duration type