]>
Commit | Line | Data |
---|---|---|
3f6b6a56 | 1 | export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added' |
c48e82b5 | 2 | |
3f6b6a56 C |
3 | export type MostViewsRedundancyStrategy = { |
4 | strategy: 'most-views' | |
c48e82b5 | 5 | size: number |
e5565833 | 6 | minLifetime: number |
c48e82b5 | 7 | } |
3f6b6a56 C |
8 | |
9 | export type TrendingRedundancyStrategy = { | |
10 | strategy: 'trending' | |
11 | size: number | |
e5565833 | 12 | minLifetime: number |
3f6b6a56 C |
13 | } |
14 | ||
15 | export type RecentlyAddedStrategy = { | |
16 | strategy: 'recently-added' | |
17 | size: number | |
18 | minViews: number | |
e5565833 | 19 | minLifetime: number |
3f6b6a56 C |
20 | } |
21 | ||
22 | export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy |