Skip to content

Nil keys break stashes #7

@kornypoet

Description

@kornypoet

The following creates a difficult situation to recover from if a key is ever nil:

require 'vayacondios-client'
client = Vayacondios::HttpClient.new(host: 'localhost', port: 9000, organization: 'hyrule')
client.set!('topic', 'id', { nil => 'accident' })
client.get('topic', 'id')
#=> {""=>"thing"}
client.set!('topic', 'id.nested', { real: 'value' })
client.get('topic', 'id.nested')
#=> nil

Discovered this by accident, and it prevents further nested use of the topic id pair.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions