You can create caches with ignite.CreateCache or GetOrCreateCache methods.

On Wed, Mar 15, 2017 at 12:20 PM, kavitha <[email protected]> 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.
>

Reply via email to