public class RedisIdEngine extends RedisTemplateX<String,String> implements IDidEngine<Long>
GEDID| Constructor and Description |
|---|
RedisIdEngine(org.springframework.data.redis.core.StringRedisTemplate stringRedisTemplate) |
| Modifier and Type | Method and Description |
|---|---|
String |
engineName()
current engine's name
|
void |
follow(String businessName,
Long startId)
Follow The business with name.
|
String |
getEmbellishedName(String businessName)
get the embellished business name
|
Long |
getFixedStartId(Long startId)
get fixed start id
|
Long |
next(String businessName)
the next id
|
append, bitField, blPop, boundGeoOps, boundHashOps, boundListOps, boundSetOps, boundValueOps, boundZSetOps, brPop, brPoplPush, countExistingKeys, decr, decrBy, del, del, discard, exec, exec, execute, executePipelined, executePipelined, exists, expire, expireAt, geoAdd, geoAdd, geoAdd, geoAdd, geoDist, geoDist, geoHash, geoPos, geoRadius, geoRadius, geoRadiusByMember, geoRadiusByMember, geoRadiusByMember, geoRemove, get, getBit, getRange, getRedisTemplate, getSet, hDel, hExists, hGet, hGetAll, hKeys, hLen, hMget, hmset, hSet, hVals, incr, incrBy, lIndex, lLen, lPop, lPush, lPush, lPush, lPushx, lRange, lRem, lSet, ltrim, mGet, move, mSet, mSet, multi, opsForCluster, opsForGeo, opsForHash, opsForHyperLogLog, opsForList, opsForSet, opsForValue, opsForZSet, persist, pExpire, pfAdd, pfCount, pfMerge, rename, rPop, rPoplPush, rPush, rPush, rPush, rPushx, sAdd, sCard, sDiff, sDiff, sDiffStore, sDiffStore, set, setBit, setEnableTransactionSupport, setEx, setEx, setNx, setNx, setNx, setRange, setXx, setXx, setXx, sInter, sInter, sInterStore, sInterstore, sIsMember, sMembers, sort, sort, sort, sort, sort, sPop, sRandMember, sRandMember, sRem, strLen, sUnion, sUnion, sUnionStore, sUnionStore, ttl, type, unlink, unlink, unwatch, watch, watch, zAdd, zAdd, zCard, zCount, zIncrby, zInterStore, zInterStore, zInterStore, zRange, zRangeByLex, zRangeByLex, zRangeByScore, zRangeByScore, zRank, zRem, zRemRangeByRank, zRemRangeByScore, zRevRange, zRevRange, zRevRangeByScore, zRevRank, zScan, zScore, zUnionStore, zUnionStore, zUnionStoreclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitunsupportedOperationzInterStore, zUnionStorepublic RedisIdEngine(org.springframework.data.redis.core.StringRedisTemplate stringRedisTemplate)
public void follow(String businessName, Long startId)
IDidEnginefollow in interface IDidEngine<Long>businessName - business namestartId - the first idpublic String getEmbellishedName(String businessName)
IDidEnginegetEmbellishedName in interface IDidEngine<Long>businessName - the business namepublic Long getFixedStartId(Long startId)
IDidEnginegetFixedStartId in interface IDidEngine<Long>startId - not all startIdT default return startId selfpublic Long next(String businessName)
IDidEnginenext in interface IDidEngine<Long>businessName - the business namepublic String engineName()
IDidEngineengineName in interface IDidEngine<Long>Copyright © 2021. All rights reserved.