0
我爲Vimeo API創建了一個python包裝,這是我第一次創建python發佈。我對python caching有疑問。針對多個用戶的Python緩存
我把這個existing python-vimeo wrapper用來緩存請求令牌。那傢伙這樣實施
"""By default, this client will cache API requests for 120 seconds. To
override this setting, pass in a different cache_timeout parameter (in
seconds), or to disable caching, set cache_timeout to 0."""
我想知道它是否會造成問題或不。如果有多個用戶使用該功能在服務器
return self._cache.setdefault(key, processor(headers, content))
沒有它創造的問題正好在同時這樣的連接VIMEO,和存儲信息(信息會覆蓋在緩存中)?
如果它造成了問題,你能告訴我最好的解決方案嗎?我認爲這將存儲在與認證用戶名稱的文件名。我對嗎?
謝謝!