What does "urn:" mean?
I play with the ServiceStack Redis example. This is like a naming convention, many keys in db, starting with "urn:".
By calling somePoco.CreateUrn(); β "urn:somePoco:123" It creates a key in the database.
And the advantage of this is that RedisTypedClient can arrange it in the following code: for example
var redisSomePoco = redis.As<SomePoco>(); var somePoco = redisSomePoco.GetById("123"); //it knows I want value of key "urn:somePoco:123" redisSomePoco.Store(somePoco); //it knows how to store my poco value in key "urn:somePoco:123" //"{\"Id\":123,\"DisplayName\":\"Michael\"}"
Do I understand correctly? Or am I even close?
source share