I am having some data stored in redis
with below given keys
I have stored some keys into redis like
key1 = https://abc.net/v/140225014843/css/ key2 = https://abc.net/v/153729007613/css/ key3 = https://abc.net/v/240125414249/css/ key4 = https://abc.net/v/140225014843/css/:tokens key5 = https://abc.net/v/240125414249/css/:tokens
Now i am having data = 140225014843
i want to fetch key and it's value which is having that data inside it .
Example : key1 is having data inside it so i want to fetch key1 from redis.
I am using django-redis.
Edit :
Key4 is also having data into it but i want to fetch only those keys which are of pattern like key1 .
red.keys("*140225014843*")
.but output here is coming['https://abc.net/v/14022501484/css/:tokens', 'https://abc.net/v/14022501484/css/']
.... i want only value of'https://abc.net/v/14022501484/css/
– Prashant Gaur Feb 25 '14 at 07:17