api: implement redis/memory store for cache
This commit is contained in:
10
api/src/store/store.js
Normal file
10
api/src/store/store.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { env } from '../config.js';
|
||||
|
||||
let _export;
|
||||
if (env.redisURL) {
|
||||
_export = await import('./redis-store.js');
|
||||
} else {
|
||||
_export = await import('./memory-store.js');
|
||||
}
|
||||
|
||||
export default _export.default;
|
||||
Reference in New Issue
Block a user