Component evidence

CacheableInstallationStore (installation_store/cacheable_installation_store.py)

python-slack-sdk · slack_sdk/oauth/installation_store/cacheable_installation_store.py · python · MIT
authAuth / Identity

In-memory cache wrapper for Slack OAuth installation store to speed bot and installation lookups.

Source preview first 800 characters · full source over MCP
# Source: https://github.com/slackapi/python-slack-sdk | License: MIT | Copyright 2015- Slack Technologies, LLC
# Provided via justclaw.it.com; keep this notice with the code.
from logging import Logger
from typing import Optional, Dict

from slack_sdk.oauth import InstallationStore
from slack_sdk.oauth.installation_store import Bot, Installation


class CacheableInstallationStore(InstallationStore):
    underlying: InstallationStore
    cached_bots: Dict[str, Bot]
    cached_installations: Dict[str, Installation]

    def __init__(self, installation_store: InstallationStore):
        """A simple memory cache wrapper for any installation stores.

        Args:
            installation_store: The installation store to wrap
        """
        self.underlying = installation_store
        sel

... (truncated -- full source via MCP)