You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make the cache a class (implement __get__, get, and __set__ to hide file copying and deleting, and internally manage a SafeLruDict)
Make a ResolvedFile class (or something like that), that can hold a file's path, cache path, last mod, tell if it's stale, etc. See note in loris/resolvers/file_system_resolver.py
The text was updated successfully, but these errors were encountered:
Alternatively, if we didn't want to go this far (it's not as clean as the above makes it sound) then move the cache behaviors into a superclass or Mixin so that other cache implementations can use it.
__get__
,get
, and__set__
to hide file copying and deleting, and internally manage aSafeLruDict
)ResolvedFile
class (or something like that), that can hold a file's path, cache path, last mod, tell if it's stale, etc. See note inloris/resolvers/file_system_resolver.py
The text was updated successfully, but these errors were encountered: