internal static async Task <T> Find <T>(this Client client, params object[] keys) where T : class { string key = RedisContext.GenerateKey(typeof(T), keys); Document retObj = await client.GetDocumentAsync(key); if (retObj is null) { return(null); } string serialized = JsonConvert.SerializeObject(retObj.GetProperties()); return(JsonConvert.DeserializeObject <T>(serialized, RedisearchSerializerSettings.SerializerSettings)); }