You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The easiest way to do this is to support storing any serde_json::Value, so strings (the current implementation) as well as arrays and objects, etc. I cannot figure out how to get my cache methods to support JSON value generics -- something like cache.get_or<String>(...); where the String type parameter would be the return type and what the value is deserialized to. But currently not possible AFAIK.
The text was updated successfully, but these errors were encountered:
The easiest way to do this is to support storing any
serde_json::Value
, so strings (the current implementation) as well as arrays and objects, etc. I cannot figure out how to get my cache methods to support JSON value generics -- something likecache.get_or<String>(...);
where the String type parameter would be the return type and what the value is deserialized to. But currently not possible AFAIK.The text was updated successfully, but these errors were encountered: