MCPcopy
hub / github.com/long2ice/fastapi-cache / decode

Method decode

fastapi_cache/coder.py:106–110  ·  view source on GitHub ↗
(cls, value: bytes)

Source from the content-addressed store, hash-verified

104
105 @classmethod
106 def decode(cls, value: bytes) -> Any:
107 # explicitly decode from UTF-8 bytes first, as otherwise
108 # json.loads() will first have to detect the correct UTF-
109 # encoding used.
110 return json.loads(value.decode(), object_hook=object_hook)
111
112
113class PickleCoder(Coder):

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected