Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[server/generate_once] write sessionData caches to file #29

Merged
merged 20 commits into from
Sep 15, 2024

Conversation

grqz
Copy link
Collaborator

@grqz grqz commented Sep 14, 2024

[server/generate_once] Cache sessionData to file
- [server/generate_once] Better logging
- [server/generate_once] Parse date with new Date()
- [server/session_manager] add exporting interface YoutubeSessionDataCaches
- [server/session_manager] add private property TOKEN_TTL_HOURS to SessionManager
- [server/session_manager] add public method cleanupCaches, getYoutubeSessionDataCaches(boolean), setYoutubeSessionDataCaches(YoutubeSessionDataCaches)
- [server/session_manager+generate_once] automatically cleanup caches
- [server/session_manager] rename private property youtubeSessionData to youtubeSessionDataCaches

- [server/generate_once] Better logging
- [server/generate_once] Parse date with new Date()
- [server/session_manager] add exporting interface YoutubeSessionDataCaches
- [server/session_manager] add private property TOKEN_TTL_HOURS to SessionManager
- [server/session_manager] add public method cleanupCaches, getYoutubeSessionDataCaches(boolean), setYoutubeSessionDataCaches(YoutubeSessionDataCaches)
- [server/session_manager+generate_once] automatically cleanup caches
- [server/session_manager] rename private property youtubeSessionData to youtubeSessionDataCaches
This reverts commit dc227b2.

	modified:   CONTRIBUTING.md
@grqz grqz changed the title [Server]scipt_caches [server]scipt_caches Sep 14, 2024
@grqz grqz changed the title [server]scipt_caches [server/generate_once] write sessionData caches to file Sep 14, 2024
@grqz grqz requested a review from Brainicism September 14, 2024 09:29
server/src/generate_once.ts Outdated Show resolved Hide resolved
server/src/generate_once.ts Outdated Show resolved Hide resolved
server/src/generate_once.ts Outdated Show resolved Hide resolved
grqz and others added 3 commits September 14, 2024 11:02
fix `Conversion of type 'Date' to type 'string' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.ts(2352)`

Co-authored-by: Brian Le <[email protected]>
Conversion of type 'Date' to type 'string' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.ts(2352)
@grqz grqz requested a review from Brainicism September 14, 2024 11:06
server/src/generate_once.ts Outdated Show resolved Hide resolved
server/src/generate_once.ts Outdated Show resolved Hide resolved
server/src/generate_once.ts Outdated Show resolved Hide resolved
server/src/generate_once.ts Outdated Show resolved Hide resolved
server/src/generate_once.ts Outdated Show resolved Hide resolved
Brainicism and others added 3 commits September 14, 2024 19:10
- use independent `log` instead of using `sessioinManager.log`
always log the script's stderr output
@grqz grqz merged commit 5bc73a9 into master Sep 15, 2024
4 checks passed
@grqz grqz deleted the server/scipt_caches branch September 15, 2024 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants