You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by siva <si...@bizruntime.com> on 2020/01/21 15:48:19 UTC

Get Added CacheConfiguration template from .Net Client Ignite Node

Hi,
I am using .Net Client and Server App using Ignite v2.7.6.

Node1:All cache created and Added configuration into Node1.
Node2:Started and some of cache configuration added into Node2.


for example:let's say for "test1" cache no cache template added into ignite
node.
--------------
IgniteClientInstance.GetOrCreateCache<string,object>("test1").CacheConfiguration
//throwing error 


so how to get from node whether configuration is exists or not for the
particular cache name?





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Get Added CacheConfiguration template from .Net Client Ignite Node

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

I don't think Ignite actually supports key/value inheritance, it may not
work as you assume it does.

Other than that, can you produce a small reproducer project, upload it
somewhere?

Regards,
-- 
Ilya Kasnacheev


чт, 23 янв. 2020 г. в 08:13, siva <si...@bizruntime.com>:

> Hi,
> Actually that is not CacheStore Type.Naming convention issue. And it's
> Interface implementing by all model classes.
>
> Example:
>
> public Interface ICustomCacheStore{
> }
>
> public class Person:ICustomCacheStore{
> }
>
> public class Department:ICustomCacheStore{
> }
>
> so all model class implementing above interface so that' why i provide
> there
> interface as value type.
>
> 3.Not working throwing error could not create .Net CacheStore
>   _IGNITE_CLIENT.GetOrCreateCache<string,
> ICustomCacheStore>(cacheName).GetConfiguration();
>
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Get Added CacheConfiguration template from .Net Client Ignite Node

Posted by siva <si...@bizruntime.com>.
Hi,
Actually that is not CacheStore Type.Naming convention issue. And it's
Interface implementing by all model classes.

Example:

public Interface ICustomCacheStore{
}

public class Person:ICustomCacheStore{
}

public class Department:ICustomCacheStore{
}

so all model class implementing above interface so that' why i provide there
interface as value type.

3.Not working throwing error could not create .Net CacheStore
  _IGNITE_CLIENT.GetOrCreateCache<string,
ICustomCacheStore>(cacheName).GetConfiguration();






--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Get Added CacheConfiguration template from .Net Client Ignite Node

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

Why would you have your cache parametrized with CacheStore as value type??

Regards,
-- 
Ilya Kasnacheev


ср, 22 янв. 2020 г. в 13:02, siva <si...@bizruntime.com>:

> Hi,
> I have .Net Core Application using Ignite V2.7.6.
>
> 1.#ICache.GetConfiguration()
>  unable to find,there is method that take parameter to get
> cacheConfiguration. #ICache.GetConfiguration()
>
> 2.Always returning null.
>  var cachConfiguration =
> _IGNITE_CLIENT.GetConfiguration().CacheConfiguration.SingleOrDefault(x =>
> x.Name == cacheName);
>
>
> 3.Not working throwing error could not create .Net CacheStore
>   _IGNITE_CLIENT.GetOrCreateCache<string,
> ICustomCacheStore>(cacheName).GetConfiguration();
>
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

RE: Get Added CacheConfiguration template from .Net Client Ignite Node

Posted by siva <si...@bizruntime.com>.
Hi,
I have .Net Core Application using Ignite V2.7.6.

1.#ICache.GetConfiguration()
 unable to find,there is method that take parameter to get
cacheConfiguration. #ICache.GetConfiguration()

2.Always returning null.
 var cachConfiguration =
_IGNITE_CLIENT.GetConfiguration().CacheConfiguration.SingleOrDefault(x =>
x.Name == cacheName);


3.Not working throwing error could not create .Net CacheStore
  _IGNITE_CLIENT.GetOrCreateCache<string,
ICustomCacheStore>(cacheName).GetConfiguration();






--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/