MCPcopy
hub / github.com/reflex-dev/reflex / serialize

Method serialize

reflex/istate/manager/token.py:163–172  ·  view source on GitHub ↗

Serialize the BaseState for redis/disk storage. Args: state: The BaseState to serialize. Returns: The serialized state.

(cls, state: BaseState)

Source from the content-addressed store, hash-verified

161
162 @classmethod
163 def serialize(cls, state: BaseState) -> bytes:
164 """Serialize the BaseState for redis/disk storage.
165
166 Args:
167 state: The BaseState to serialize.
168
169 Returns:
170 The serialized state.
171 """
172 return state._serialize()
173
174 @classmethod
175 def deserialize(

Callers

nothing calls this directly

Calls 1

_serializeMethod · 0.80

Tested by

no test coverage detected