Explorar o código

使用uwsgi的缓存

yf_fyh %!s(int64=3) %!d(string=hai) anos
pai
achega
4cbd8802ba
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      bigdataAPI/settings.py

+ 10 - 0
bigdataAPI/settings.py

@@ -175,3 +175,13 @@ REST_FRAMEWORK = {
 JWT_AUTH = {
     'JWT_EXPIRATION_DELTA': datetime.timedelta(days=1),
 }
+
+
+CACHES = {
+    'default': {
+        'BACKEND': 'uwsgicache.UWSGICache',
+
+        # and optionally, if you use a different cache name
+        'LOCATION': 'foobar'
+    }
+}