parameters: (self)
return_statement: return r.delete(
              ORG_CREDITS_TOTAL_CACHE_KEY % self.pk,
              ORG_CREDIT_EXPIRING_CACHE_KEY % self.pk,
              ORG_CREDITS_USED_CACHE_KEY % self.pk,
              ORG_CREDITS_PURCHASED_CACHE_KEY % self.pk,
              ORG_LOW_CREDIT_THRESHOLD_CACHE_KEY % self.pk,
              ORG_ACTIVE_TOPUP_KEY % self.pk,
              *active_topup_keys,
          )
docstring: Clears the given cache types (currently just credits) for this org. Returns number of keys actually deleted
docstring_summary: Clears the given cache types (currently just credits) for this org. Returns number of keys actually deleted
docstring_tokens: Clears the given cache types ( currently just credits ) for this org . Returns number of keys actually deleted
function: def clear_credit_cache(self):
          """
          Clears the given cache types (currently just credits) for this org. Returns number of keys actually deleted
          """
          r = get_redis_connection()
          active_topup_keys = [ORG_ACTIVE_TOPUP_REMAINING % (self.pk, topup.pk) for topup in self.topups.all()]
          return r.delete(
              ORG_CREDITS_TOTAL_CACHE_KEY % self.pk,
              ORG_CREDIT_EXPIRING_CACHE_KEY % self.pk,
              ORG_CREDITS_USED_CACHE_KEY % self.pk,
              ORG_CREDITS_PURCHASED_CACHE_KEY % self.pk,
              ORG_LOW_CREDIT_THRESHOLD_CACHE_KEY % self.pk,
              ORG_ACTIVE_TOPUP_KEY % self.pk,
              *active_topup_keys,
          )
function_tokens: def clear_credit_cache ( self ) : r = get_redis_connection ( ) active_topup_keys = [ ORG_ACTIVE_TOPUP_REMAINING % ( self . pk , topup . pk ) for topup in self . topups . all ( ) ] return r . delete ( ORG_CREDITS_TOTAL_CACHE_KEY % self . pk , ORG_CREDIT_EXPIRING_CACHE_KEY % self . pk , ORG_CREDITS_USED_CACHE_KEY % self . pk , ORG_CREDITS_PURCHASED_CACHE_KEY % self . pk , ORG_LOW_CREDIT_THRESHOLD_CACHE_KEY % self . pk , ORG_ACTIVE_TOPUP_KEY % self . pk , * active_topup_keys , )