Shared LRU avoids repeated Gitea calls for default-branch resolution; the simple stdlib map alternative would race on concurrent access without a mutex per entry, which is more code than the LRU.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>