Trying to store values that expire x amount of time with a key prefix
I'm using using redis. I'm currently storing the values using hset
import redis
r = redis.StrictRedis('localhost')
for i in range(10):
r.hset('name', i, i)
print(r.hgetall('name'))
I want each key to have a different expire time, as I will be storing each key individually.
How do I do this?