devel/rubygem-pstore 0.2.0 DragonFly
Transactional File Storage for Ruby Objects
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- BSD2CLAUSE, RUBY
- Categories
- devel, rubygems
- Package size
- 11.5 KiB, 36.5 KiB installed
Description
PStore implements a file based persistence mechanism based on a Hash. User code can store hierarchies of Ruby objects (values) into the data store file by name (keys). An object hierarchy may be just a single object. User code may later read values back from the data store or even update data, as needed.
The transactional behavior ensures that any changes succeed or fail together. This can be used to ensure that the data store is not left in a transitory state, where some values were updated but others were not.
Behind the scenes, Ruby objects are stored to the data store file with Marshal. That carries the usual limitations. Proc objects cannot be marshalled, for example.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/rubygem-pstore | 0.2.0 |
| FreeBSD | devel/rubygem-pstore | 0.2.1 |
| MidnightBSD | devel/rubygem-pstore | 0.2.1 |
Install
Binary package:
pkg install rubygem-pstore
From DPorts:
cd /usr/dports/devel/rubygem-pstore && make install clean