Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/clips/pattern
/ __contains__
Method
__contains__
pattern/web/cache/__init__.py:89–90 ·
view source on GitHub ↗
(self, k)
Source
from the content-addressed store, hash-verified
87
return
len(glob.glob(os.path.join(self.path,
"*"
)))
88
89
def
__contains__(self, k):
90
return
os.path.exists(self._hash(k))
91
92
def
__getitem__(self, k):
93
return
self.get(k)
Callers
nothing calls this directly
Calls
2
_hash
Method · 0.95
exists
Method · 0.80
Tested by
no test coverage detected