I have a problem with my Redis db, it is encoded with PHP serialized protocol but I don't how I can decode this data using Golang, is there something like JSON Unmarshall/Marshall for this?
2条回答 默认 最新
- dpsyssiv90846 2015-10-08 11:06关注
To read such data in your Go program you will have to reimplement
unserialize
PHP function in Go. I doubt it is an easy task though.A better solution would be to use a portable format to store data in Redis, such as JSON or Google Protobuf.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报