class_docstr: This updates both Redis and an in-memory cache simultaneously.
  When data is updated or inserted, it is written to both the in-memory cache + Redis.
  This ensures that even if Redis hasn't been updated yet, the in-memory cache reflects the most recent data.
code: def flush_cache(self):
      if self.in_memory_cache is not None:
          self.in_memory_cache.flush_cache()
      if self.redis_cache is not None:
          self.redis_cache.flush_cache()
  
imports: import litellm
  import time, logging
  import json, traceback, ast, hashlib
  from typing import Optional, Literal, List, Union, Any
  from openai._models import BaseModel
label_desc: Use image node_id 4 for calling the DualCache obj's underlying member method code with example usage: obj.flush_cache() without return types