(url: str)
| 241 | |
| 242 | |
| 243 | def redis_url_is_local(url: str) -> bool: |
| 244 | host_port = redis_url_host_port(url) |
| 245 | if host_port is None: |
| 246 | return False |
| 247 | host, _ = host_port |
| 248 | return host in LOCAL_REDIS_HOSTS |
| 249 | |
| 250 | |
| 251 | def redis_ping_url(url: str, timeout: float = 0.5) -> bool: |
no test coverage detected