MCPcopy
hub / github.com/sligter/LandPPT / exists

Method exists

src/landppt/services/cache_service.py:103–111  ·  view source on GitHub ↗

Check if key exists in cache

(self, key: str)

Source from the content-addressed store, hash-verified

101 return False
102
103 async def exists(self, key: str) -> bool:
104 """Check if key exists in cache"""
105 if not self._connected:
106 return False
107 try:
108 return await self._client.exists(key) > 0
109 except Exception as e:
110 logger.error(f"Cache exists error: {e}")
111 return False
112
113 async def incr_with_ttl(self, key: str, ttl: int) -> Optional[int]:
114 """

Callers 15

main.pyFile · 0.80
faviconFunction · 0.80
config.pyFile · 0.80
reload_ai_configFunction · 0.80
is_sdk_availableMethod · 0.80
_initialize_sdkMethod · 0.80
convert_pdf_to_pptxMethod · 0.80
convert_with_temp_pdfMethod · 0.80
cleanup_temp_fileMethod · 0.80

Calls 1

errorMethod · 0.80