添加获取直播流的api

This commit is contained in:
panlinlin
2021-03-26 18:32:36 +08:00
parent 9a4b0de1af
commit edb033ccd7
14 changed files with 1039 additions and 15 deletions

View File

@@ -396,7 +396,7 @@ public class RedisUtil {
* @param value
* @param score
*/
public void zAdd(String key, String value, double score) {
public void zAdd(Object key, Object value, double score) {
redisTemplate.opsForZSet().add(key, value, score);
}
@@ -406,7 +406,7 @@ public class RedisUtil {
* @param key
* @param value
*/
public void zRemove(String key, String value) {
public void zRemove(Object key, Object value) {
redisTemplate.opsForZSet().remove(key, value);
}
@@ -417,7 +417,7 @@ public class RedisUtil {
* @param value
* @param score
*/
public Double zIncrScore(String key, String value, double score) {
public Double zIncrScore(Object key, Object value, double score) {
return redisTemplate.opsForZSet().incrementScore(key, value, score);
}
@@ -428,7 +428,7 @@ public class RedisUtil {
* @param value
* @return
*/
public Double zScore(String key, String value) {
public Double zScore(Object key, Object value) {
return redisTemplate.opsForZSet().score(key, value);
}
@@ -439,7 +439,7 @@ public class RedisUtil {
* @param value
* @return
*/
public Long zRank(String key, String value) {
public Long zRank(Object key, Object value) {
return redisTemplate.opsForZSet().rank(key, value);
}
@@ -449,7 +449,7 @@ public class RedisUtil {
* @param key
* @return
*/
public Long zSize(String key) {
public Long zSize(Object key) {
return redisTemplate.opsForZSet().zCard(key);
}
@@ -463,7 +463,7 @@ public class RedisUtil {
* @param end
* @return
*/
public Set<String> ZRange(String key, int start, int end) {
public Set<Object> ZRange(Object key, int start, int end) {
return redisTemplate.opsForZSet().range(key, start, end);
}
/**
@@ -474,7 +474,7 @@ public class RedisUtil {
* @param end
* @return
*/
public Set<ZSetOperations.TypedTuple<String>> zRangeWithScore(String key, int start, int end) {
public Set<ZSetOperations.TypedTuple<String>> zRangeWithScore(Object key, int start, int end) {
return redisTemplate.opsForZSet().rangeWithScores(key, start, end);
}
/**
@@ -487,7 +487,7 @@ public class RedisUtil {
* @param end
* @return
*/
public Set<String> zRevRange(String key, int start, int end) {
public Set<String> zRevRange(Object key, int start, int end) {
return redisTemplate.opsForZSet().reverseRange(key, start, end);
}
/**
@@ -498,7 +498,7 @@ public class RedisUtil {
* @param max
* @return
*/
public Set<String> zSortRange(String key, int min, int max) {
public Set<String> zSortRange(Object key, int min, int max) {
return redisTemplate.opsForZSet().rangeByScore(key, min, max);
}