Frage

Becher-Cache klagt einen TypeError.Ich habe bei Google gesucht, sogar den Becher-Tracker von Becher verfolgt, konnte aber nichts finden.

i Cache die Abfragen wie das folgende Verfahren generasacodicetagpre.

Wenn ich das Programm jedoch ausführe, erhalte ich jedoch; generasacodicetagpre.

Mache ich etwas falsch oder ist das ein Becher-Fehler?

War es hilfreich?

Lösung

Your code calls cache.cache with an integer for expire, which is correct, but clearly either expiretime or storedtime is winding up with a string. [From the error message it has to be expiretime. --ed] So here's what I think happened:

(1) You called cache.cache with a string expire at some point. [Maybe even from the default cache.expire in the CacheManager opts, not sure.]

(2) You fixed the bug, producing the code you submitted (which works for me).

(3) You reran the code without deleting the cache directory, and so somehow it picked up the previous state.

I can reproduce your error by following the above prescription. Could you delete your cache (everything in cache.data_dir and cache.lock_dir) and try again?

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top