I need to cache binary data and search for it using secondary indices. Binary data is 1-20KB in size and I do not want to store it outside of Redis on file system. Document payload seems to be a good way to go but it is not clear how to put binary data in the payload. And, according to this page, payloads are getting deprecated in 2.0: Document Payloads - RediSearch - Redis Secondary Index & Query Engine
I could store binary data as a separate record in Redis. Search will find keys to binary records then these records will be retrieved by keys. I would like to avoid doing that because this requires application logic for keeping data records and index records in sync. Having one record that has both the binary data and index fields will be much more desirable.
Any suggestions?