I'm using the following method to cache the result of a SQL query:
db(my_query).select(cache=(cache.ram, 3600), cacheable=True)
In some cases I want to clear this cache before it expires, which could be done by using cache.ram.clear(key)
but I actually don't know the key generated by the DAL in the previous code.
I understand cache=(cache.ram, 0)
will clear the cache too, but I also have the overhead of executing the query.
How can I achieve this?