Clean up code as well fix issues related to delete from cache, delete_multi takes a list of keys as input