Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Failing to access redistimeseries features in the Redis-py package #121

Open
dilonne opened this issue Mar 14, 2022 · 1 comment
Open

Failing to access redistimeseries features in the Redis-py package #121

dilonne opened this issue Mar 14, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@dilonne
Copy link

dilonne commented Mar 14, 2022

Version: Redis-py 4.14

Platform: Python 3.8.3 on MacOS Big Sur

Description: According to https://github.com/RedisTimeSeries/redistimeseries-py#user-content-deprecation-notice The features from redistimeseries package have merged into the redis-py module, however we are failing to run such commands using the package version stated above.

Steps to reproduce the error

import redis
r = redis.Redis(host='localhost', port=6379, db=0)
r.create("test_key_name")

Result
AttributeError: 'Redis' object has no attribute 'create'

@AvitalFineRedis

@gkorland
Copy link
Contributor

gkorland commented Mar 14, 2022

@dilonne please see the redis-py docs - https://redis-py.readthedocs.io/en/stable/redismodules.html#redistimeseries-commands

import redis
r = redis.Redis()
r.ts().create(2, retension_msecs=5)

@gkorland gkorland added the help wanted Extra attention is needed label Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants