lrf402788946 4 年之前
父节点
当前提交
a19b8d954d
共有 2 个文件被更改,包括 4 次插入6 次删除
  1. 3 6
      config/plugin.js
  2. 1 0
      package.json

+ 3 - 6
config/plugin.js

@@ -1,9 +1,6 @@
 'use strict';
 
-/** @type Egg.EggPlugin */
-module.exports = {
-  // had enabled by egg
-  // static: {
-  //   enable: true,
-  // }
+exports.redis = {
+  enable: true,
+  package: 'egg-redis',
 };

+ 1 - 0
package.json

@@ -9,6 +9,7 @@
   "dependencies": {
     "egg": "^2.15.1",
     "egg-scripts": "^2.11.0",
+    "egg-redis": "^2.4.0",
     "jsonwebtoken": "^8.5.1",
     "lodash": "^4.17.15",
     "moment": "^2.29.1",