You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/04/07 23:54:12 UTC

[jira] [Commented] (STORM-761) RedisMapState should be able to create/update expiring Redis keys.

    [ https://issues.apache.org/jira/browse/STORM-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14484156#comment-14484156 ] 

ASF GitHub Bot commented on STORM-761:
--------------------------------------

GitHub user emulvaney opened a pull request:

    https://github.com/apache/storm/pull/514

    STORM-761: An option for new/updated Redis keys to expire in RedisMapState

    This is much the same as the mechanism already available via `RedisStateUpdater` for `RedisState` instances.  Users can now set `expireIntervalSec` in their `RedisMapState.Options` instance, to set an expiry timeout on each Redis key updated by the state.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/emulvaney/storm feature/expire-in-redis-map-state

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/storm/pull/514.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #514
    
----
commit c36702e210080b2bc6d59d8f9c0b7307f5926869
Author: eric-mulvaney <er...@kontagent.com>
Date:   2015-04-07T21:24:20Z

    Made the keyFactory option public.
    
    It can be set from the public API in other ways.  Having it public
    means we can set it along with other values like hkey.

commit 410feef51cf7e85267741ca08cdd57a509d1e252
Author: eric-mulvaney <er...@kontagent.com>
Date:   2015-04-07T21:25:03Z

    Added expireIntervalSec to RedisMapState.Options
    
    This matches the option available to users of RedisStateUpdater.
    Bit heavy when setting top-level keys, since Redis doesn't have
    MSETEX to match its SETEX command where we could include an expiry
    timeout.  Pipelined to mitigate the overhead of needing to issue a
    separate command per key.

----


> RedisMapState should be able to create/update expiring Redis keys.
> ------------------------------------------------------------------
>
>                 Key: STORM-761
>                 URL: https://issues.apache.org/jira/browse/STORM-761
>             Project: Apache Storm
>          Issue Type: Improvement
>            Reporter: Eric Mulvaney
>            Assignee: Eric Mulvaney
>            Priority: Minor
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)