Medis offers a range of built-in encoders, including MessagePack, Gzip, and PHP, which can convert the data stored in the database into a human-readable format. Furthermore, you have the option to create and use your own custom encoders.
A custom encoder is an executable shell script that communicates with Medis via standard input and output.
The API utilizes standard input and output. All content are encoded in Base64 before sending to deal with binary data.
When Medis opens a string key or the content field of a hash/set/zset/list... key, and the user selects a custom encoder, Medis will encode the content in Base64 and send to the encoder script via the standard input and pass decode parameter. The process is effectively similar to: