MCPcopy Create free account
hub / github.com/RightNow-AI/rightnow-cli / count_cached_kernels

Method count_cached_kernels

rightnow_cli/cache.py:217–222  ·  view source on GitHub ↗

Count total number of cached kernels.

(self)

Source from the content-addressed store, hash-verified

215 return results
216
217 def count_cached_kernels(self) -> int:
218 """Count total number of cached kernels."""
219 with sqlite3.connect(self.db_path) as conn:
220 cursor = conn.cursor()
221 cursor.execute("SELECT COUNT(*) FROM kernel_metadata")
222 return cursor.fetchone()[0]
223
224 def clear_cache(self):
225 """Clear all cached kernels."""

Callers 4

_show_configMethod · 0.80
test_clear_cacheMethod · 0.80

Calls 1

executeMethod · 0.45

Tested by 3

test_clear_cacheMethod · 0.64