
io.leopard.data.kit.rank.NatureTimeRank Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leopard-kit Show documentation
Show all versions of leopard-kit Show documentation
常见数据源组合操作组件,如:新数量计数器(日、周、月等)、按自然时间的数量排名等。
The newest version!
package io.leopard.data.kit.rank;
import java.util.Date;
import java.util.List;
import redis.clients.jedis.Tuple;
/**
* 按自然时间排名.
*
* @author ahai
*
*/
public interface NatureTimeRank {
public static long MINUTE_MILLIS = 1000L * 60;
public static long HOUR_MILLIS = MINUTE_MILLIS * 60;
public static long DAY_MILLIS = HOUR_MILLIS * 24;
public static long WEEK_MILLIS = DAY_MILLIS * 7;
boolean add(String field, String member, Date posttime);
List list(int start, int size);
List list(String field, int start, int size);
boolean delete(String field);
boolean delete(String field, String member);
int clean();
int count(String field);
int count();
List listMembers(int start, int size);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy