2018-09-14 04:05:38 -05:00
|
|
|
export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added'
|
2018-09-11 09:27:07 -05:00
|
|
|
|
2018-09-14 04:05:38 -05:00
|
|
|
export type MostViewsRedundancyStrategy = {
|
|
|
|
strategy: 'most-views'
|
2018-09-11 09:27:07 -05:00
|
|
|
size: number
|
2018-09-24 06:07:33 -05:00
|
|
|
minLifetime: number
|
2018-09-11 09:27:07 -05:00
|
|
|
}
|
2018-09-14 04:05:38 -05:00
|
|
|
|
|
|
|
export type TrendingRedundancyStrategy = {
|
|
|
|
strategy: 'trending'
|
|
|
|
size: number
|
2018-09-24 06:07:33 -05:00
|
|
|
minLifetime: number
|
2018-09-14 04:05:38 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
export type RecentlyAddedStrategy = {
|
|
|
|
strategy: 'recently-added'
|
|
|
|
size: number
|
|
|
|
minViews: number
|
2018-09-24 06:07:33 -05:00
|
|
|
minLifetime: number
|
2018-09-14 04:05:38 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy
|