简体   繁体   中英

Can you store complex data types into RedisTimeseries instead of just a numeric value?

I would like to add different types to my Timeseries database. For example, I may want to store a byte string or hashmodel but it seems like it can't and instead I get redis.exceptions.ResponseError: TSDB: invalid value

Is there not a way to add other types other than values in RedisTimeseries?

You cannot. Each sample must be composed of a 64-bit integer timestamp (milliseconds since the UNIX epoch) and a 64-bit floating-point value. That's it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM