You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by rishi007bansod <ri...@gmail.com> on 2017/05/15 14:32:18 UTC

Store data from Python in multiple caches using Redis or Memcached client in Apache ignite

Examples at following link displays how data is stored in default
caches(single cache) only in Apache Ignite:

https://apacheignite.readme.io/docs/redis#python
<https://apacheignite.readme.io/docs/redis#python>  

https://apacheignite.readme.io/v1.8/docs/memcached-support
<https://apacheignite.readme.io/v1.8/docs/memcached-support>  

I want to store data in multiple caches(with different cache names) in
Apache Ignite from Python either using redis client or using memcache
client. How can I do this? Also, are SQL queries supported when we use
Memcached or redis client for caching data in Ignite from Python.



--
View this message in context: http://apache-ignite-developers.2346864.n4.nabble.com/Store-data-from-Python-in-multiple-caches-using-Redis-or-Memcached-client-in-Apache-ignite-tp17660.html
Sent from the Apache Ignite Developers mailing list archive at Nabble.com.

Re: Store data from Python in multiple caches using Redis or Memcached client in Apache ignite

Posted by Valentin Kulichenko <va...@gmail.com>.
To my knowledge, Memcached does not allow to do this.

-Val

On Mon, May 15, 2017 at 9:27 PM, Roman Shtykh <rs...@yahoo.com.invalid>
wrote:

> Denis, yes, I would like to enable switching caches via "CONFIG SET
> parameter value".I created https://issues.apache.org/
> jira/browse/IGNITE-5229 for this, and will discuss it in a separate
> thread.
> Roman
>
>
>
>
>     On Tuesday, May 16, 2017 8:45 AM, Denis Magda <dm...@apache.org>
> wrote:
>
>
>  Hi, see below
>
> > On May 15, 2017, at 7:32 AM, rishi007bansod <ri...@gmail.com>
> wrote:
> >
> > Examples at following link displays how data is stored in default
> > caches(single cache) only in Apache Ignite:
> >
> > https://apacheignite.readme.io/docs/redis#python
> > <https://apacheignite.readme.io/docs/redis#python>
> >
> According to the docs there is no way to store data in multiple caches for
> now.
>
> *Roman*, do you have any plans to remove the limitation in the nearest
> releases?
>
> > https://apacheignite.readme.io/v1.8/docs/memcached-support
> > <https://apacheignite.readme.io/v1.8/docs/memcached-support>
> >
>
> *Val*, is this achievable with Memcached client? I can’t find a hint how
> to do this.
>
> > I want to store data in multiple caches(with different cache names) in
> > Apache Ignite from Python either using redis client or using memcache
> > client. How can I do this? Also, are SQL queries supported when we use
> > Memcached or redis client for caching data in Ignite from Python.
> >
>
> If you want to use SQL queries from Python then I would suggest connecting
> to the cluster with ODBC driver:
> https://apacheignite.readme.io/docs/odbc-driver
>
> For instance, this is how it works from PHP and the same can be easily
> done from Python side:
> https://apacheignite-mix.readme.io/docs/php-pdo
>
> —
> Denis
>
> >
> >
> > --
> > View this message in context: http://apache-ignite-
> developers.2346864.n4.nabble.com/Store-data-from-Python-in-
> multiple-caches-using-Redis-or-Memcached-client-in-Apache-
> ignite-tp17660.html
> > Sent from the Apache Ignite Developers mailing list archive at
> Nabble.com.
>
>
>
>

Re: Store data from Python in multiple caches using Redis or Memcached client in Apache ignite

Posted by Roman Shtykh <rs...@yahoo.com.INVALID>.
Denis, yes, I would like to enable switching caches via "CONFIG SET parameter value".I created https://issues.apache.org/jira/browse/IGNITE-5229 for this, and will discuss it in a separate thread.
Roman




    On Tuesday, May 16, 2017 8:45 AM, Denis Magda <dm...@apache.org> wrote:
 

 Hi, see below

> On May 15, 2017, at 7:32 AM, rishi007bansod <ri...@gmail.com> wrote:
> 
> Examples at following link displays how data is stored in default
> caches(single cache) only in Apache Ignite:
> 
> https://apacheignite.readme.io/docs/redis#python
> <https://apacheignite.readme.io/docs/redis#python>  
> 
According to the docs there is no way to store data in multiple caches for now.

*Roman*, do you have any plans to remove the limitation in the nearest releases?

> https://apacheignite.readme.io/v1.8/docs/memcached-support
> <https://apacheignite.readme.io/v1.8/docs/memcached-support>  
> 

*Val*, is this achievable with Memcached client? I can’t find a hint how to do this.

> I want to store data in multiple caches(with different cache names) in
> Apache Ignite from Python either using redis client or using memcache
> client. How can I do this? Also, are SQL queries supported when we use
> Memcached or redis client for caching data in Ignite from Python.
> 

If you want to use SQL queries from Python then I would suggest connecting to the cluster with ODBC driver:
https://apacheignite.readme.io/docs/odbc-driver

For instance, this is how it works from PHP and the same can be easily done from Python side:
https://apacheignite-mix.readme.io/docs/php-pdo

—
Denis

> 
> 
> --
> View this message in context: http://apache-ignite-developers.2346864.n4.nabble.com/Store-data-from-Python-in-multiple-caches-using-Redis-or-Memcached-client-in-Apache-ignite-tp17660.html
> Sent from the Apache Ignite Developers mailing list archive at Nabble.com.


   

Re: Store data from Python in multiple caches using Redis or Memcached client in Apache ignite

Posted by Denis Magda <dm...@apache.org>.
Hi, see below

> On May 15, 2017, at 7:32 AM, rishi007bansod <ri...@gmail.com> wrote:
> 
> Examples at following link displays how data is stored in default
> caches(single cache) only in Apache Ignite:
> 
> https://apacheignite.readme.io/docs/redis#python
> <https://apacheignite.readme.io/docs/redis#python>  
> 
According to the docs there is no way to store data in multiple caches for now.

*Roman*, do you have any plans to remove the limitation in the nearest releases?

> https://apacheignite.readme.io/v1.8/docs/memcached-support
> <https://apacheignite.readme.io/v1.8/docs/memcached-support>  
> 

*Val*, is this achievable with Memcached client? I can’t find a hint how to do this.

> I want to store data in multiple caches(with different cache names) in
> Apache Ignite from Python either using redis client or using memcache
> client. How can I do this? Also, are SQL queries supported when we use
> Memcached or redis client for caching data in Ignite from Python.
> 

If you want to use SQL queries from Python then I would suggest connecting to the cluster with ODBC driver:
https://apacheignite.readme.io/docs/odbc-driver

For instance, this is how it works from PHP and the same can be easily done from Python side:
https://apacheignite-mix.readme.io/docs/php-pdo

—
Denis

> 
> 
> --
> View this message in context: http://apache-ignite-developers.2346864.n4.nabble.com/Store-data-from-Python-in-multiple-caches-using-Redis-or-Memcached-client-in-Apache-ignite-tp17660.html
> Sent from the Apache Ignite Developers mailing list archive at Nabble.com.