mirror of
https://github.com/directus/directus.git
synced 2026-02-01 19:24:56 -05:00
Adding to the config so we can pick what kind of caching
This commit is contained in:
@@ -32,7 +32,6 @@ const defaults = {
|
||||
},
|
||||
rateLimits: {
|
||||
RATE_LIMIT_TYPE: 'redis',
|
||||
CACHE_TYPE: 'redis',
|
||||
CONSUMED_POINTS_LIMIT: 5,
|
||||
CONSUMED_RESET_DURATION: 1,
|
||||
EXEC_EVENLY: true,
|
||||
@@ -40,6 +39,9 @@ const defaults = {
|
||||
INMEMORY_BLOCK_CONSUMED: 200,
|
||||
INMEMEMORY_BLOCK_DURATION: 30,
|
||||
},
|
||||
caching: {
|
||||
CACHE_TYPE: 'redis',
|
||||
},
|
||||
security: {
|
||||
KEY: uuidv4(),
|
||||
SECRET: nanoid(32),
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
* checkPeriod is the amount of seconds for the
|
||||
* autodelete to wait before checking
|
||||
* if cache needs to be deleted.
|
||||
* Have wrapped node cache so we can extend if needed
|
||||
*/
|
||||
import NodeCache from 'node-cache';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user