Cleanup Schema cache per request (#6126)

* remove enableSingleSchemaCache from test

* clear schema cache per request
This commit is contained in:
Diamond Lewis
2019-10-11 15:27:15 -05:00
committed by GitHub
parent f26008f031
commit edfa1df454
4 changed files with 112 additions and 21 deletions

View File

@@ -96,6 +96,19 @@ export class RedisCacheAdapter {
})
);
}
// Used for testing
async getAllKeys() {
return new Promise((resolve, reject) => {
this.client.keys('*', (err, keys) => {
if (err) {
reject(err);
} else {
resolve(keys);
}
});
});
}
}
export default RedisCacheAdapter;