问题标签 [dogpile.cache]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
148 浏览

python - 处理 dogpile.cache 装饰器异常

我在 Python 项目中使用 dogpile.cache,并带有基于 pylibmc 的后端。创建区域后,我使用以下内容:

我的问题是,装饰器提出了某些例外,我只想忽略这些例外。例如,如果 memcached 不可用,或者结果太大。

有没有办法在不滚动我自己的自定义装饰器的情况下实现这一目标?如果我必须创建一个自定义装饰器,有什么好方法可以实现。

0 投票
0 回答
75 浏览

python - Python "wetterdienst" module: using with local files?

I am currently using the wetterdienst module with the DWD (Deutscher Wetterdienst, Germany's National Meteorological Service) server for retrieving e.g. MOSMIX data (weather forecasts).

For training an ML model with forecasts dating back more than a few days I need to save them locally as they are not archived on the DWD Open Data server.

But how can I read them into the wetterdienst module again? The API only provides for direct loading of files from the server (with local dogpile caching). I want to use the existing parts of wetterdienst for processing the KMZ files I saved earlier.

I cannot use actual historic observation data as they lack certain forecast data fields, e.g. precipitation probabilities.

0 投票
0 回答
11 浏览

caching - SQLAlchemy:多个缓存区域分离

多个缓存区域是否提供分离缓存?我的理解是,由于您可以单独清除区域(请参阅Dogpile 文档),因此您可以对多个区域使用相同的密钥,例如:

但这似乎行不通。任何人都可以详细说明或提供有关区域处理的链接。