DataAccess.RedisAdaptor.UpdateWork C# (CSharp) 메소드

UpdateWork() 공개 메소드

public UpdateWork ( object id ) : Task
id object
리턴 Task
        public async Task<bool> UpdateWork(object id)
        {
            RedisValue taskMember = string.Format("task:u:{0}", id);
            RedisKey taskKey = string.Format("task:{0}", taskMember.GetHashCode() % 4);
            var timestamp = GetNowUnixTimeDouble();

            var result = await Handle.SortedSetAddAsync(taskKey, taskMember, timestamp);
            return result;
        }