MCPcopy Create free account
hub / github.com/FongMi/TV / delCache

Method delCache

chaquo/src/main/python/base/spider.py:147–149  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

145 return 'succeed' if r.status_code == 200 else 'failed'
146
147 def delCache(self, key):
148 r = self.fetch(f'http://127.0.0.1:{Proxy.getPort()}/cache?do=del&key={key}', timeout=5)
149 return 'succeed' if r.status_code == 200 else 'failed'

Callers 1

getCacheMethod · 0.95

Calls 2

fetchMethod · 0.95
getPortMethod · 0.45

Tested by

no test coverage detected