smartValueSerializer<T>(): ValueSerializer<T>
Initializes a smart serializer/deserializer for memoization caches that need to serialize values.
Uses JSON.stringify and JSON.parse with custom support for common types. Supports BigInt, Uint8Array, ArrayBuffer, Map, and Set.
Note that Date is already supported by JSON, but it always serializes to a string and can't be deserialized back to a Date.