2.24.0 • Published 10 months ago

@schoolmouv/cache-utils v2.24.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Cache Utils

This package is the heart of our use of Redis, here in SchoolMouv.

It exposes functions interacting with cache so we can :

  • get data
  • set data
  • flush data

checkCacheConnection

The middleware checkCacheConnection from the package @schoolmouv/koa-utils must be used in the gateway/microservice where we use cache.

It is useful to detect when the connection to redis is stuck on the "connect" status, preventing requests to be done and creating a timeout on these requests.

As cache-utils use koa-utils, you must add these pieces of code taken from the README.md @schoolmouv/koa-utils:

In the app.config.ts of the service:

import { checkCacheConnection } from '@schoolmouv/koa-utils';

// If it exists, put this line of code instead of  middleware `health`,
// it checks the health of the app and also check the connection status to Redis
app.use(checkCacheConnection);

In the Kube infrastructure :

values.yml

healthcheck:
  path: '/health'

templates/deployment.yaml of the service

{{- if .Values.healthcheck }}
    livenessProbe:
    httpGet:
        path: {{ .Values.healthcheck.path }}
        port: {{ .Values.service.targetPort }}
    initialDelaySeconds: 10
    periodSeconds: 3
    failureThreshold: 5
{{- end }}
2.24.0

10 months ago

2.23.0

11 months ago

2.22.1

1 year ago

2.22.0

1 year ago

2.21.0

1 year ago

2.20.0

1 year ago

2.19.0

1 year ago

2.18.0

1 year ago

2.17.0

2 years ago

2.16.0

2 years ago

2.15.0

3 years ago

2.14.1

3 years ago

2.15.0-beta.0

3 years ago

2.14.0

3 years ago

2.13.0

3 years ago

2.12.0

3 years ago

2.11.0

3 years ago

2.10.1

3 years ago

2.10.0

3 years ago

2.9.0-beta.1-ana

3 years ago

2.9.0-beta.0-ana

3 years ago

2.9.0

3 years ago

2.8.3-beta.0-tif

3 years ago

2.8.2

3 years ago

2.8.1

3 years ago

2.8.0

3 years ago

2.7.1-beta.0-tif

3 years ago

2.8.0-beta.2-val

3 years ago

2.8.0-beta.1-val

3 years ago

2.8.0-beta.0-val

3 years ago

2.7.0

3 years ago

2.6.0

3 years ago

2.8.0-beta.1

3 years ago

2.8.0-beta.0

3 years ago

2.5.0

3 years ago

2.7.0-beta.4

4 years ago

2.5.0-beta.0

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.7.0-beta.3

4 years ago

2.7.0-beta.2

4 years ago

2.7.0-beta.1

4 years ago

2.5.0-beta.3

4 years ago

2.5.0-beta.2

4 years ago

2.3.2

4 years ago

2.5.0-beta.1

4 years ago

2.4.0-beta.0

4 years ago

2.3.1

4 years ago

2.3.0

4 years ago

2.4.0-beta.1

4 years ago

2.3.0-beta.4

4 years ago

2.3.0-beta.3

4 years ago

2.3.0-beta.2

4 years ago

2.3.0-beta.1

4 years ago

2.2.0

4 years ago

2.2.0-beta.2

4 years ago

2.2.0-beta.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

2.0.0-beta.5

4 years ago

1.9.0

4 years ago

2.0.0-beta.4

4 years ago

1.10.0-beta.7

4 years ago

1.10.0-beta.6

4 years ago

1.10.0-beta.5

4 years ago

1.10.0-beta.4

4 years ago

1.10.0-beta.3

4 years ago

1.10.0-beta.2

4 years ago

1.10.0-beta.1

4 years ago

1.9.0-beta.3

4 years ago

1.10.0-beta.0

4 years ago

1.8.0-beta.38

4 years ago

1.9.0-beta.2

4 years ago

1.9.0-beta.1

4 years ago

2.0.0-beta.3

4 years ago

2.0.0-beta.2

4 years ago

2.0.0-beta.1

4 years ago

2.0.0-beta.0

4 years ago

1.8.0

4 years ago

1.8.0-beta.37

4 years ago

1.8.0-beta.36

4 years ago

1.8.0-beta.35

4 years ago

1.8.0-beta.34

4 years ago

1.8.0-beta.33

4 years ago

1.8.0-beta.32

4 years ago

1.8.0-beta.31

4 years ago

1.8.0-beta.30

4 years ago

1.8.0-beta.29

4 years ago

1.8.0-beta.28

4 years ago

1.8.0-beta.27

4 years ago

1.8.0-beta.26

4 years ago

1.8.0-beta.25

4 years ago

1.8.0-beta.24

4 years ago

1.8.0-beta.23

4 years ago

1.6.0-beta.23

4 years ago

1.8.0-beta.22

4 years ago

1.8.0-beta.21

4 years ago

1.8.0-beta.20

4 years ago

1.8.0-beta.19

4 years ago

1.8.0-beta.18

4 years ago

1.8.0-beta.17

4 years ago

1.8.0-beta.16

4 years ago

1.8.0-beta.15

4 years ago

1.8.0-beta.14

4 years ago

1.8.0-beta.13

4 years ago

1.8.0-beta.12

4 years ago

1.8.0-beta.11

4 years ago

1.8.0-beta.10

4 years ago

1.8.0-beta.1

4 years ago

1.8.0-beta.0

4 years ago

1.7.3

4 years ago

1.7.2

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.6.0-beta.3

4 years ago

1.6.0-beta.2

4 years ago

1.6.0-beta.1

4 years ago

1.6.0-beta.0

4 years ago

1.6.0-beat.0

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.3.1-beta.3

4 years ago

1.4.0

4 years ago

1.3.1-beta.2

4 years ago

1.3.1-beta.1

4 years ago

1.3.0-beta.2

4 years ago

1.3.0-beta.1

4 years ago

1.3.0-beta.0

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.2.0-beta.1

4 years ago

1.2.0-beta.O

4 years ago

1.1.0

4 years ago

1.1.0-beta.3

4 years ago

1.1.0-beta.2

4 years ago

1.1.0-beta.1

4 years ago

1.1.0-beta.0

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago