Use byte array or json file in Couchbase Storage

Hello every one,
I’am using couchbase cache in .Net Core.
I want to know the perf way to store data in couchbase, it using json serialization or array of byte .


@ABdo91 -

Generally, JSON is preferred in that you can use N1QL on that data if necessary. Also, IIRC Session which uses Couchbase.Cache internally as a store requires items to be stored as a binary blob and will fail on read if not - this is in the SessionState middleware, not the actual Couchbase.Session code.