DataAccess.RedisAdaptor.UpdateWork C# (CSharp) Méthode

UpdateWork() public méthode

public UpdateWork ( object id ) : Task
id object
Résultat 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;
        }