Cache_redis: Refactoring if delete() method.