CloudBread Project  2.1.0-stable
Static Public Member Functions | List of all members
CloudBreadRedis.CBRedis Class Reference

Static Public Member Functions

static bool SetRedisKey (string key, string value, int?expTimeMin)
 save socket auth key in redis db0
 
static string GetRedisKeyValue (string key)
 get socket auth key redis data by key value
 
static bool SetSortedSetRank (string sid, double point)
 Set point value at Redis sorted set.
 
static long GetSortedSetRank (string sid)
 Get rank value from Redis sorted set.
 
static SortedSetEntry[] GetSortedSetRankByRange (long startRank, long endRank)
 Get selected rank range members. Get my rank and then call this method to fetch +-10 rank(total 20) rank.
 
static SortedSetEntry[] GetTopSortedSetRank (int countNumber)
 Get top rank point and info from Redis sorted set.
 
static bool FillAllRankFromDB ()
 
static void saveRedisLog (string key, string message, int?expTimeDays)
 save log to redis db2 and keep 365 days
 

Member Function Documentation

static bool CloudBreadRedis.CBRedis.FillAllRankFromDB ( )
static

fill out all rank redis cache from db

Todo:
: huge amount of data processing - split 10,000 or ... dt.Rows check. if bigger than 10,000, seperate as another loop dt.Rows / 10,000 = mod value + 1 = loop count........... call count query first and then paging processing at query side to prevent DB throttling?

make SortedSetEntry to fill out


The documentation for this class was generated from the following file: