Reference counting for redis