nuummite
Version, currently 0.1.25 versions
- 0.1.5latestMay 15, 2022
- 0.1.4not indexedMay 15, 2022
- 0.1.2not indexedMay 15, 2022
- 0.1.1not indexedMay 15, 2022
- 0.1.0not indexedMay 15, 2022
github.com/codesteak/nuummite
Nuummite is a tiny persistent embedded key-value store for Crystal!
Nothing has been indexed for 0.1.2 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
nuummite:
github: codesteak/nuummite
version: ~> 0.1.2Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.2. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
Nuummite 
Nuummite is a tiny persistent embedded key-value store. All data is kept in RAM (in a Crystal Hash) and is also written to disk. So don't use Nuummite to handle big chunks of data. Keys and Values are always Strings. It just comes with the most basic operations.
Installation
Add this to your application's shard.yml:
dependencies:
nuummite:
github: codesteak/nuummite
version: ~> 0.1.4
Usage
require "nuummite"
Open the database
db = Nuummite.new("path/to/folder", "optional-filename.db")
# You can also have multiple:
flowers = Nuummite.new("flowers")
minerals = Nuummite.new("minerals")
Put some values in
db["hello"] = "world"
db["42"] = "Answer to the Ultimate Question of Life, The Universe, and Everything"
db["whitespace"] = "Hey\n\t\t :D"
Read values
db["hello"]? # => "world"
db["ehhhh"]? # => nil
#Note: db is locked while reading, so don't write to db!
db.each do |key,value|
# reads everything
end
db["crystals/ruby"] = "9.0"
db["crystals/quartz"] = "~ 7.0"
db["crystals/nuummite"] = "5.5 - 6.0"
db.each("crystals/") do |key,value|
# only crystals in here
end
Delete
db.delete "hello"
Garbage collect
Since values are saved to disk in a log style, file sizes grow, your key-value store needs to rewrite all data at some point:
db.garbage_collect
By default it auto garbage collects after 10_000_000 writes. To modify this behavior you can:
# garbage collects after 1000 writes or deletes
db.auto_garbage_collect_after_writes = 1000
# does not auto garbage collect
db.auto_garbage_collect_after_writes = nil
Shutdown
You can also shutdown Nuummite by
db.shutdown
That's all you need to know :smile:
Contributing
- Fork it ( https://github.com/codesteak/nuummite/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- CodeSteak - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.2- Tagged
- May 15, 2022
- Commit
a1fda6fc077a- Indexed
- not yet
Dependents
Repository
github.com/codesteak/nuummite
Metadata
- Created
- Aug 17, 2026
- Updated
- Sep 30, 2026
- Synced
- Sep 30, 2026
- Versions
- 5