Re: Store Hash data type in redis

2018-03-26 Thread Bryan Bende
If you setup the RedisDistributedMapCacheClient, you can then use the
PutDistributedMapCache processor to store anything you want in Redis.

You could use the HashContent processor and then store that in Redis.

-Bryan

On Fri, Mar 23, 2018 at 9:03 AM, Mike Thomsen  wrote:
> I don't think there are any processors yet for this sort of thing. I've been
> thinking about working on some for a while now. How would you expect that
> hypothetical PutRedisHash processor to work? Here are some example use cases
> that I've been mulling for building one:
>
> 1. Read from attributes with a configured prefix like
> "redis.hash.{NAME}.{KEY}".
> 2. A mass HSET from a flat JSON document where the hash name would come off
> a configured attribute.
> 3. A set of work instructions like this:
>
> {
> "hincr": [
> "user_logins",
> "bad_logins"
> ],
> "hset": {
> "key1": "x",
> "key2": y"
> }
> }
>
> What are your thoughts on that for a Jira ticket?
>
> On Fri, Mar 23, 2018 at 6:04 AM, Sangavi Eswaramoorthi 
> wrote:
>>
>> Hi,
>>
>> I would like to store hash data in redis using NIFi. Is it achievable?
>>
>> Thanks,
>> sangavi
>
>


Re: Store Hash data type in redis

2018-03-23 Thread Mike Thomsen
I don't think there are any processors yet for this sort of thing. I've
been thinking about working on some for a while now. How would you expect
that hypothetical PutRedisHash processor to work? Here are some example use
cases that I've been mulling for building one:

1. Read from attributes with a configured prefix like
"redis.hash.{NAME}.{KEY}".
2. A mass HSET from a flat JSON document where the hash name would come off
a configured attribute.
3. A set of work instructions like this:

{
"hincr": [
"user_logins",
"bad_logins"
],
"hset": {
"key1": "x",
"key2": y"
}
}

What are your thoughts on that for a Jira ticket?

On Fri, Mar 23, 2018 at 6:04 AM, Sangavi Eswaramoorthi 
wrote:

> Hi,
>
> I would like to store hash data in redis using NIFi. Is it achievable?
>
> Thanks,
> sangavi
>


Store Hash data type in redis

2018-03-23 Thread Sangavi Eswaramoorthi
Hi,

I would like to store hash data in redis using NIFi. Is it achievable?

Thanks,
sangavi