fix memory cache Put method should set value when key exist.