Adding ->delete() method to cache classes