def get_feed_json(db_session, feed_name): cache = local_named_cache(cache_name) cached = cache.lookup(feed_name) if cached: return cached meta_record = lookup_feed(db_session, feed_name) if meta_record: cache.cache_it(meta_record.name, meta_record.to_json()) return cache.lookup(feed_name)
def config_cache(): return local_named_cache('queue_configs')