summaryrefslogtreecommitdiff
path: root/requests_cache/backends/sqlite.py
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-08-20 21:13:28 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-08-20 21:21:12 -0500
commitbc6c70e391dc2bdb15c18b2314f03a0e186e5fa3 (patch)
tree9bc4d4717d2cdd205d6c337c806171ee2e633333 /requests_cache/backends/sqlite.py
parent31f7a437dd940f9cabc8d45f8093b244990600f3 (diff)
downloadrequests-cache-bc6c70e391dc2bdb15c18b2314f03a0e186e5fa3.tar.gz
Add FileCache.paths() wrapper method, and return a list instead of generator
Diffstat (limited to 'requests_cache/backends/sqlite.py')
-rw-r--r--requests_cache/backends/sqlite.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/requests_cache/backends/sqlite.py b/requests_cache/backends/sqlite.py
index cc512a0..97a0b61 100644
--- a/requests_cache/backends/sqlite.py
+++ b/requests_cache/backends/sqlite.py
@@ -147,7 +147,9 @@ class SQLiteCache(BaseCache):
db_path, table_name='responses', use_temp=use_temp, fast_save=fast_save, **kwargs
)
self.redirects = SQLiteDict(db_path, table_name='redirects', use_temp=use_temp, **kwargs)
- self.db_path = self.responses.db_path
+
+ def db_path(self) -> str:
+ return self.responses.db_path
def bulk_delete(self, keys):
"""Remove multiple responses and their associated redirects from the cache, with additional cleanup"""