
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Structured keys helper.
If you are familiar with databases like Redis and libraries like Ohm you already know how important it is to craft the keys that will hold the data.
>> redis = Redis.new
>> redis.sadd("event:3:attendees", "Albert")
>> redis.smembers("event:3:attendees")
=> ["Albert"]
It is a design pattern in key-value databases to use the key to simulate structure, and you can read more about this in the case study for a Twitter clone.
Nido helps you generate those keys by providing chainable namespaces:
>> r = Redis.new
>> event = Nido.new("event")
>> r.sadd(event[3][:attendees], "Albert")
>> r.smembers(event[3][:attendees])
=> ["Albert"]
To create a new namespace:
>> ns = Nido.new("foo")
=> "foo"
>> ns["bar"]
=> "foo:bar"
>> ns["bar"]["baz"]["qux"]
=> "foo:bar:baz:qux"
And you can use any object as a key, not only strings:
>> ns[:bar][42]
=> "foo:bar:42"
In a more realistic tone, lets assume you are working with Redis and dealing with events:
>> events = Nido.new("events")
=> "events"
>> id = r.incr(events[:id])
=> 1
>> r.sadd(events[id][:attendees], "Albert")
=> "OK"
>> meetup = events[id]
=> "events:1"
>> r.smembers(meetup[:attendees])
=> ["Albert"]
$ gem install nido
FAQs
Unknown package
We found that nido demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.