ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Tupitsyn <ptupit...@apache.org>
Subject Re: Connect to SQL DB
Date Wed, 15 Mar 2017 09:37:43 GMT
You can create caches with ignite.CreateCache or GetOrCreateCache methods.

On Wed, Mar 15, 2017 at 12:20 PM, kavitha <kavithamrgsn@gmail.com> wrote:

> Thanks for your reply.
> I tried below code. but I got error.
>
>  IIgnite ignite = Ignition.Start();
>             using (var ldr = ignite.GetDataStreamer<int,
> Account>("myStreamCache"))
>             {
>                 for (int i = 0; i < EntryCount; i++)
>                     ldr.AddData(i, new Account(i, i));
>             }
>
> Error Message:
> An unhandled exception of type 'System.InvalidOperationException' occurred
> in Apache.Ignite.Core.dll
>
> Additional information: Cache doesn't exist: myStreamCache
>
> Can you please explain how I correct it?
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Connect-to-SQL-DB-tp11180p11187.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Mime
View raw message