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

feat(back): Implement cache management #151

Open
1 task
spy4x opened this issue Nov 25, 2022 · 0 comments
Open
1 task

feat(back): Implement cache management #151

spy4x opened this issue Nov 25, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@spy4x
Copy link
Owner

spy4x commented Nov 25, 2022

Parts:

  • CacheService (to wrap @Inject(CACHE_MANAGER) private readonly cache: Cache and it's methods)
    • async get<T>(key: string): Promise<T>
    • async set(key: string, value: Object, ttl: CacheTTL): Promise<void>
    • wrap(key: string, asyncFn: Function, ttl: CacheTTL): Function
    • async purge(url: string, shouldPreload = false): Promise<void>
    • async preload(url: string): Promise<void>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant