Support returning the new value from cache_add/cache_sub
Credits to rrb3942