小编The*_*nor的帖子

Redis timeseries with python : ResponseError: unknown command 'TS.CREATE'

I am trying to create a timeseries in Redis using python like so:

    import redis
    connection_redis = redis.Redis(host='127.0.0.1', port=6379)
    connection_redis.ts().create('ts', retention_msecs=0)
Run Code Online (Sandbox Code Playgroud)

but I get the following error: ResponseError: unknown command 'TS.CREATE'.

I have been searching for a way to solve this problem but I haven't found anything. I am running redis in a docker.

Thank you :)!

python redis redistimeseries

3
推荐指数
1
解决办法
1499
查看次数

标签 统计

python ×1

redis ×1

redistimeseries ×1