aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-12-11 09:44:11 +0100
committerGravatar Numerlor <[email protected]>2020-12-11 09:46:16 +0100
commitea9b3e0e9ac74ea541f436f8021178f76f19af39 (patch)
tree81860b0da9924c0ea9da2fad36f579128e6c3020 /tests
parentCreate a generator instead of returning a list (diff)
Restructure doc cache to handle caches of whole pages
Previously we used packages as the top level keys and fields contained the url and the symbol id, however if we want to store all symbols from fetched pages instead of only the ones that were fetched by the users this comes worse off than using the page url in the field and setting EXPIREs for them instead of doing it manually in python. The new implementation uses package:url as the redis key and only the symbol id for field names, with the expire being set to a week on the key, this means we have to pattern match the keys when deleting the cache for a package but that's being done far less than the expire checking done previously.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions