MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / get_int

Method get_int

backend/tkhelper/database/redis/connection.py:165–178  ·  view source on GitHub ↗
(self, key: str)

Source from the content-addressed store, hash-verified

163 return None
164
165 async def get_int(self, key: str):
166 if self.redis is None:
167 return None
168 try:
169 value = await self.redis.get(key)
170 logger.debug(f"get_int: key={key}, value={value}")
171 if value:
172 return int(value)
173 except asyncio.CancelledError:
174 logger.error(f"get_object: operation was cancelled, key={key}")
175 return None
176 except Exception as e:
177 logger.error(f"get_int: error={e}")
178 return None

Callers 1

is_chat_lockedMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected