@diia-inhouse/redis 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/LICENCE.md +287 -0
  2. package/README.md +93 -0
  3. package/dist/index.js +20 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/interfaces/cache.js +3 -0
  6. package/dist/interfaces/cache.js.map +1 -0
  7. package/dist/interfaces/deps.js +3 -0
  8. package/dist/interfaces/deps.js.map +1 -0
  9. package/dist/interfaces/index.js +22 -0
  10. package/dist/interfaces/index.js.map +1 -0
  11. package/dist/interfaces/mutex.js +3 -0
  12. package/dist/interfaces/mutex.js.map +1 -0
  13. package/dist/interfaces/pubsub.js +3 -0
  14. package/dist/interfaces/pubsub.js.map +1 -0
  15. package/dist/interfaces/redis.js +8 -0
  16. package/dist/interfaces/redis.js.map +1 -0
  17. package/dist/interfaces/store.js +12 -0
  18. package/dist/interfaces/store.js.map +1 -0
  19. package/dist/services/cache.js +75 -0
  20. package/dist/services/cache.js.map +1 -0
  21. package/dist/services/index.js +22 -0
  22. package/dist/services/index.js.map +1 -0
  23. package/dist/services/mutex.js +44 -0
  24. package/dist/services/mutex.js.map +1 -0
  25. package/dist/services/providers/cache.js +56 -0
  26. package/dist/services/providers/cache.js.map +1 -0
  27. package/dist/services/providers/pubsub.js +86 -0
  28. package/dist/services/providers/pubsub.js.map +1 -0
  29. package/dist/services/pubsub.js +43 -0
  30. package/dist/services/pubsub.js.map +1 -0
  31. package/dist/services/redis.js +17 -0
  32. package/dist/services/redis.js.map +1 -0
  33. package/dist/services/store.js +135 -0
  34. package/dist/services/store.js.map +1 -0
  35. package/dist/types/index.d.ts +3 -0
  36. package/dist/types/interfaces/cache.d.ts +14 -0
  37. package/dist/types/interfaces/deps.d.ts +7 -0
  38. package/dist/types/interfaces/index.d.ts +5 -0
  39. package/dist/types/interfaces/mutex.d.ts +5 -0
  40. package/dist/types/interfaces/pubsub.d.ts +15 -0
  41. package/dist/types/interfaces/redis.d.ts +15 -0
  42. package/dist/types/interfaces/store.d.ts +23 -0
  43. package/dist/types/services/cache.d.ts +24 -0
  44. package/dist/types/services/index.d.ts +5 -0
  45. package/dist/types/services/mutex.d.ts +13 -0
  46. package/dist/types/services/providers/cache.d.ts +17 -0
  47. package/dist/types/services/providers/pubsub.d.ts +17 -0
  48. package/dist/types/services/pubsub.d.ts +15 -0
  49. package/dist/types/services/redis.d.ts +4 -0
  50. package/dist/types/services/store.d.ts +24 -0
  51. package/package.json +96 -0
package/package.json ADDED
@@ -0,0 +1,96 @@
1
+ {
2
+ "name": "@diia-inhouse/redis",
3
+ "version": "2.12.0",
4
+ "description": "Redis services - redlock, pubsub, cache and store",
5
+ "main": "dist/index.js",
6
+ "types": "dist/types/index.d.ts",
7
+ "repository": "https://github.com/diia-open-source/be-pkg-redis.git",
8
+ "author": "Diia",
9
+ "license": "SEE LICENCE IN LICENCE.md",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "engines": {
14
+ "node": ">=18"
15
+ },
16
+ "scripts": {
17
+ "prebuild": "rimraf dist",
18
+ "build": "tsc",
19
+ "semantic-release": "semantic-release",
20
+ "start": "npm run build && node dist/index.js",
21
+ "lint": "eslint --ext .ts . && prettier --check .",
22
+ "lint-fix": "eslint '*/**/*.{js,ts}' --fix && prettier --write .",
23
+ "lint:lockfile": "lockfile-lint --path package-lock.json --allowed-hosts registry.npmjs.org --validate-https",
24
+ "prepare": "npm run build",
25
+ "test": "jest",
26
+ "test:coverage": "jest --coverage",
27
+ "test:unit": "npm run test --selectProjects unit --",
28
+ "test:integration": "npm run test --selectProjects integration --",
29
+ "find-circulars": "madge --circular --extensions ts ./"
30
+ },
31
+ "resolutions": {
32
+ "@babel/traverse": "7.23.2"
33
+ },
34
+ "dependencies": {
35
+ "ioredis": "5.4.1",
36
+ "redis-semaphore": "5.5.1"
37
+ },
38
+ "peerDependencies": {
39
+ "@diia-inhouse/env": ">=1.2.0",
40
+ "@diia-inhouse/errors": ">=1.4.2",
41
+ "@diia-inhouse/types": ">=3.50.0",
42
+ "@diia-inhouse/validators": ">=1.6.1"
43
+ },
44
+ "devDependencies": {
45
+ "@diia-inhouse/configs": "1.31.1",
46
+ "@diia-inhouse/diia-logger": "2.15.0",
47
+ "@diia-inhouse/env": "1.16.0",
48
+ "@diia-inhouse/errors": "1.9.0",
49
+ "@diia-inhouse/eslint-config": "5.1.0",
50
+ "@diia-inhouse/test": "6.3.0",
51
+ "@diia-inhouse/types": "6.24.0",
52
+ "@diia-inhouse/validators": "1.17.0",
53
+ "@types/node": "20.12.10",
54
+ "eslint": "8.57.0",
55
+ "eslint-plugin-prettier": "5.1.3",
56
+ "lockfile-lint": "4.13.2",
57
+ "madge": "7.0.0",
58
+ "prettier": "3.2.5",
59
+ "protobufjs": "7.2.5",
60
+ "rimraf": "5.0.5",
61
+ "semantic-release": "21.1.2",
62
+ "typescript": "5.4.5"
63
+ },
64
+ "release": {
65
+ "extends": "@diia-inhouse/configs/dist/semantic-release/package",
66
+ "branches": [
67
+ "main"
68
+ ]
69
+ },
70
+ "commitlint": {
71
+ "extends": "@diia-inhouse/configs/dist/commitlint"
72
+ },
73
+ "eslintConfig": {
74
+ "extends": "@diia-inhouse/eslint-config",
75
+ "overrides": [
76
+ {
77
+ "files": [
78
+ "*.ts"
79
+ ],
80
+ "parserOptions": {
81
+ "project": [
82
+ "./tsconfig.json",
83
+ "./tests/tsconfig.json"
84
+ ]
85
+ }
86
+ }
87
+ ]
88
+ },
89
+ "jest": {
90
+ "preset": "@diia-inhouse/configs/dist/jest"
91
+ },
92
+ "prettier": "@diia-inhouse/eslint-config/prettier",
93
+ "madge": {
94
+ "tsConfig": "./tsconfig.json"
95
+ }
96
+ }