Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/internetarchive/openlibrary
/ _encode_key
Method
_encode_key
openlibrary/core/cache.py:312–313 ·
view source on GitHub ↗
(self, key: str)
Source
from the content-addressed store, hash-verified
310
return
MockMemcacheClient()
311
312
def
_encode_key(self, key: str) -> str:
313
return
cast(str, web.safestr(key))
314
315
def
get(self, key: str) -> Any:
316
key = self._encode_key(key)
Callers
3
get
Method · 0.95
get_multi
Method · 0.95
set_multi
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected