Skip to content

Add support for LIST and CHANNEL data typesΒ #32

@iridian-ks

Description

@iridian-ks

Problem

We have existing log stacks that use LIST or CHANNEL data types and does not support HASH_MAP.

Steps to replicate

Use a log consumer that only supports LIST or CHANNEL data types.

Expected Behavior

The fluent-plugin-redis configuration allows to specify which data type to use. Currently, only HASH MAP is supported.

Suggested changes

  1. Add a new config option in the plugin called data_type. Default this to HASH_MAP. Allow for options HASH_MAP, LIST, CHANNEL.
  2. HASH_MAP type works as it does today with no changes
  3. LIST option will use RPUSH
  4. CHANNEL option will use PUBLISH
  5. Document that allow_duplicate_key and possibly ttl is only valid for HASH_MAP
  6. Document that key_prefix can be used to select a different LIST or CHANNEL

I am prepared to make the updates to the plugin but want a confirmation that such changes will be accepted in a PR.

Thank you!! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions