Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions diskcache/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2364,6 +2364,10 @@ def __len__(self):
"""Count of items in cache including expired items."""
return self.reset('count')

def __bool__(self):
"""Mark Cache objects as Truthy"""
return True

def __getstate__(self):
return (self.directory, self.timeout, type(self.disk))

Expand Down