Closed GoogleCodeExporter closed 9 years ago
Hi mahesh,
When using the high-level typed API (i.e. redisClient.GetTypedClient<string>())
I do an extra call to 'keep track of the entities'. By maintaining a set
of ids for each entity I'm able to implement 'GetAll' and 'DeleteAll' that I
otherwise would not be able to do.
Now there is no reason to use the high-level API if you are just using 'string'
since the common API IRedisClient provides first class support for
strings. The high-level 'GetTypedClient' is for providing a convenient
strong-typed API against complex entities e.g. GetTypedClient<User>().
So instead of doing:
var redis = redisClient.GetTypedClient<string>();
redis.Set("aaa_" + i, i.ToString());
you should just use the redisClient directly and do:
redisClient.SetEntry("aaa_" + i, i.ToString());
You will still be able to maintain a list of string's:
var redisList = redisClient.Lists["string1"];
redisList.Add(i.ToString());
Original comment by demis.be...@gmail.com
on 1 Jun 2010 at 9:07
Original comment by demis.be...@gmail.com
on 11 Aug 2010 at 3:19
Original issue reported on code.google.com by
mahesh.p...@gmail.com
on 1 Jun 2010 at 3:24