chore: switch back to official keyv and update deps

This commit is contained in:
Kilian Decaderincourt 2021-11-25 14:43:31 +01:00
parent 5f6fe76dff
commit f43c3d886f
4 changed files with 6174 additions and 3371 deletions

View File

@ -12,6 +12,6 @@ It can be used with [kiliandeca/excalidraw-fork](https://gitlab.com/kiliandeca/e
| --------------- | ------------------------------------------------------------ | ---------------- |
| `PORT` | Server listening port | 8080 |
| `GLOBAL_PREFIX` | API global prefix for every routes | `/api/v2` |
| `STORAGE_URI` | [Keyv](https://github.com/lukechilds/keyv) connection string | `""` (in memory) |
| `STORAGE_URI` | [Keyv](https://github.com/jaredwray/keyv) connection string | `""` (in memory) |
Availabe Keyv storage adapter: redis, mongo, postgres and mysql

9527
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -21,15 +21,16 @@
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@keyv/mongo": "^1.1.0",
"@keyv/mysql": "^1.1.4",
"@keyv/postgres": "^1.0.16",
"@keyv/redis": "^2.1.2",
"@keyv/mongo": "^1.2.1",
"@keyv/mysql": "^1.1.5",
"@keyv/postgres": "^1.0.17",
"@keyv/redis": "^2.2.0",
"@keyv/sqlite": "^2.0.3",
"@nestjs/common": "^8.0.0",
"@nestjs/core": "^8.0.0",
"@nestjs/platform-express": "^8.0.0",
"@types/keyv": "^3.1.3",
"keyv": "^4.0.3",
"keyv": "^4.0.4",
"nanoid": "^3.1.25",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",

View File

@ -1,6 +1,5 @@
import { Injectable } from '@nestjs/common';
import * as Keyv from '@keyvhq/core';
import * as Keyv from 'keyv';
@Injectable()
export class StorageService {