Merge pull request 'v0.3.1/reduce-redis-content-expiry' (#90) from v0.3.1/reduce-redis-content-expiry into develop

Reviewed-on: #90
This commit is contained in:
lamacchinadesiderante 2024-05-19 17:18:12 +00:00
commit 6fc56eb7d3
2 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# PHASE 1: copy and build # PHASE 1: copy and build
FROM node:22.0.0-alpine3.19 AS build FROM node:22.2.0-alpine3.19 AS build
WORKDIR /app WORKDIR /app
@ -10,7 +10,7 @@ RUN rm -rf node_modules && npm install && npm run build
# PHASE 2: prepare for exec # PHASE 2: prepare for exec
FROM node:22.0.0-alpine3.19 AS exec FROM node:22.2.0-alpine3.19 AS exec
WORKDIR /app WORKDIR /app

View File

@ -1,4 +1,7 @@
export const DEFAULT_XVIDEOS_CONTENT_EXPIRY = { EX: 60 * 60 * 24 }; const EX_HOURLY = 60 * 60
export const DEFAULT_XNXX_CONTENT_EXPIRY = { EX: 60 * 60 * 24 }; const EX_DAILY = 60 * 60 * 24
export const DEFAULT_XVIDEOS_CONTENT_EXPIRY = { EX: EX_HOURLY };
export const DEFAULT_XNXX_CONTENT_EXPIRY = { EX: EX_HOURLY };
export const DEFAULT_RELATED_VIDEO_KEY_PATH = '/related/' export const DEFAULT_RELATED_VIDEO_KEY_PATH = '/related/'