Hi,
I have used Infinispan server (version 5.3.0) since last week as a distributed caching layer for our all product in our platform.
It works fine for our projects very efficient way. clustering works perfectly.
In my caching layer there should be different values for same key. (
Ex:
project 1
key1 : user_id
value1 : json (<email>,<name>,<address>)
{user_id :value1}
In same project (project 1)
key2 :user_id
value2 : json {<account_info>,<mobile_bal>}
{user_id :value2}
project 2
key2 :user_id
value2 : json {<sport_venues>,<avaliable games>}
{user_id :value2}
So I need to define key by using namespace like xml namespace.
My mine says something like below,
key1 : u:user_id
key2 :_a:user_id
Can anybody give some ideas for my requirements.
Thank you
Amila
Why not use a separate cache per project ?
Alternatively, you can just construct your keys concatenating qualifiers as strings such as:
project1.key1
project1.key2
project2.key1
Maybe use a more compact representation for the project part of the key.