code: def _get_cache_key(self, obj):
          
          if obj is not None:
              # Make sure that key is REALLY unique.
              return '{}-{}'.format(id(self), obj.pk)
  
          return "{}-None".format(id(self))
docs: Derive cache key for given object.