Skip to content

I wish that getset could ignore nil #21

@kwerle

Description

@kwerle
cache.getset(:foo, ignore_nil: true) { nil }
cache.key?(:foo) == false
cache[:foo] == nil
cache.getset(:foo, ignore_nil: true) { :bar }
cache.key?(:foo) == true
cache[:foo] == :bar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions