ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yakov Zhdanov <yzhda...@apache.org>
Subject Re: Changing cache name when using Redis protocol
Date Thu, 18 May 2017 11:49:59 GMT

I don't like implementing of special configuration type - you loose
flexibility in this case, e.g. adding cache will most likely be a pain or a
complete restart. CONFIG SET may work, but for redis this is some kind of
global configuration, so it is pretty far from, let's say, MySQL's USE
command. I would think this should work on per-connection basis, but CONFIG
SET seems to be global.

I would think about using SELECT command for this. I think it may work as
follows. By default client is connected to database '0'. Upon first request
from the client IgniteCache with name "redis-ignite-internal-cache-0" gets
created. Same for other databases - "redis-ignite-itnernal-cache-XX". User
can register a config template for these caches.

This approach seems to be more intuitive for Redis users.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message