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
When using bytes objects as keys, client-side caching doesn't work, because when trying to invalidate the cache, it unconditionally decodes bytes to str objects. This should probably be the other way around (i.e. encode all str keys as utf-8 and only store bytes keys in the cache). This would allow the use of str and bytes keys interchangeably for the vast majority of cases, unless someone is interchangeably using str keys and non-utf-8-encoded bytes keys, in which case they should probably stick with one or the other.
The text was updated successfully, but these errors were encountered:
When using
bytes
objects as keys, client-side caching doesn't work, because when trying to invalidate the cache, it unconditionally decodesbytes
tostr
objects. This should probably be the other way around (i.e. encode allstr
keys as utf-8 and only storebytes
keys in the cache). This would allow the use ofstr
andbytes
keys interchangeably for the vast majority of cases, unless someone is interchangeably usingstr
keys and non-utf-8-encodedbytes
keys, in which case they should probably stick with one or the other.The text was updated successfully, but these errors were encountered: