Browse Source

add default pickle cache version

Change-Id: I3efcd68425a79d84241d4f7c16ba385127331deb
Signed-off-by: cloudnull <kevin@cloudnull.com>
cloudnull 2 months ago
parent
commit
c50f76e73f
No account linked to committer's email address
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      monitorstack/utils/__init__.py

+ 4
- 1
monitorstack/utils/__init__.py View File

@@ -123,7 +123,10 @@ class LocalCache(object):
123 123
 
124 124
         :returns: object
125 125
         """
126
-        return diskcache.Cache(directory=self.cache_path)
126
+        return diskcache.Cache(
127
+            directory=self.cache_path,
128
+            disk_pickle_protocol=2
129
+        )
127 130
 
128 131
     def lc_open(self):
129 132
         """Open shelved data.

Loading…
Cancel
Save