Imported Google Group message. Original thread at: https://groups.google.com/forum/#!topic/tyk-community-support/te--i92EXTo Import Date: 2016-01-19 21:27:09 +0000.
Date:Saturday, 10 October 2015 15:42:30 UTC+1.
Im building a infraestructure using tyk as api gateway, and i wish to use the tyk integration with redis, but i want to handle this in some “advance” way, im looking for suggestions on how to do this. Here is what i want to do:
I want to cache some routes for a time of X seconds (i know how to do this with tyk)
Also i want to delete dynamically some redis keys, in example: If i’ve cached a request called X for 10 minutes, and 3 minutes after this requests is updated in my system, i dont want to wait for 7 minutes for the redis auto delete, instead i want to tell redis to delete this key and in the next access it caches the updated version.
I’ve been investigating and i’ve found the API of redis for python has some methods to delete keys selectively, but i’ve to know the key of that register in redis, because tyks generates this key automatically i dont know how to fetch it in order to delete it.
Any suggestions on this field?
Thanks for any help you can provide!