how about this becomes a private method and then you implement something like

```python
class StateLog:
    def get_pending_log_for_object(obj):
        return cache.get(self._get_pending_cache_key_for_object(obj)
```